is it possible to make an npc do a buff on a char for a limited time?
If so how??
I know something with a timer dunno how exactly....
If so how??
I know something with a timer dunno how exactly....
Well,thats possible. If you want specific stigma for 100 sec,you can either code a "new" stigma,like Stigma1,that does it for 100 seconds,so you dont modify the real one.Quote:
So NPC axtion Stigma on mychar for 100 sec?
How or not possible :P?
Quote:
I don't think an NPC can do it(Without tons and tons of coding and shit, even then it still may be impossible), but you can fool around with mobs...(Like making a guard do stuff)
That will just give him the effect not the statsQuote:
Well,thats possible. If you want specific stigma for 100 sec,you can either code a "new" stigma,like Stigma1,that does it for 100 seconds,so you dont modify the real one.
Anyways.just to do something like this:
if (CurrentNPC == 1337)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("I could stig you for 100 seconds if you would like that."));
SendPacket(General.MyPackets.NPCLink("Yes sir,please do", 2));
SendPacket(General.MyPackets.NPCLink("No,thanks.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 2)
{
MyChar.StigBuff = true;
}
}
Might not be working but worth a try!
Emme
in the npc script.Quote:
MyChar.StigBuff = true;
Done,should work.Quote:
MyChar.StigBuff = true;
MyChar.Stigged = DateTime.Now;
MyChar.MyClient.SendPacket(General.MyPackets.Vital (MyChar.UID, 26, MyChar.GetStat()));
World.UpdateSpawn(MyChar);