Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 00:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Timer for NPC actions?

Discussion on Timer for NPC actions? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Timer for NPC actions?

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....
~Yuki~ is offline  
Old 09/10/2008, 13:31   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
I don't think an NPC can do it(Without tons and tons of coding and ****, even then it still may be impossible), but you can fool around with mobs...(Like making a guard do stuff)
tao4229 is offline  
Old 09/10/2008, 14:41   #3
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
@tao4229 /Agreed
Alltho I think its impossible.
glupkotrup is offline  
Old 09/10/2008, 15:11   #4
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
What you mean?
YukiXian is offline  
Old 09/10/2008, 15:34   #5
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
So NPC axtion Stigma on mychar for 100 sec?

How or not possible :P?
~Yuki~ is offline  
Old 09/10/2008, 15:43   #6
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
Well It is possible... But u need to kill your *** for it
glupkotrup is offline  
Old 09/10/2008, 16:13   #7
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
Originally Posted by lolmaster123 View Post
So NPC axtion Stigma on mychar for 100 sec?

How or not possible :P?
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
_Emme_ is offline  
Old 09/10/2008, 16:14   #8
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
Originally Posted by tao4229 View Post
I don't think an NPC can do it(Without tons and tons of coding and ****, even then it still may be impossible), but you can fool around with mobs...(Like making a guard do stuff)

Add my msn u newbie
_Emme_ is offline  
Old 09/10/2008, 18:37   #9
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
Hmm... I'll try it out later... If it works you earned 1 thanks
glupkotrup is offline  
Old 09/10/2008, 20:00   #10
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by emildayan1 View Post
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
That will just give him the effect not the stats
© Haydz is offline  
Old 09/10/2008, 21:54   #11
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
My bad,LOL,didnt though of that.

Find the
Quote:
MyChar.StigBuff = true;
in the npc script.

Replace it with:

Quote:
MyChar.StigBuff = true;
MyChar.Stigged = DateTime.Now;
MyChar.MyClient.SendPacket(General.MyPackets.Vital (MyChar.UID, 26, MyChar.GetStat()));
World.UpdateSpawn(MyChar);
Done,should work.

Emme
_Emme_ is offline  
Old 09/10/2008, 22:08   #12
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by emildayan1 View Post
My bad,LOL,didnt though of that.

Find the
in the npc script.

Replace it with:



Done,should work.

Emme
Was about to correct you there .

Edit:: Emme I added you, It should be pretty easy to know whether it's my email or not..
tao4229 is offline  
Reply


Similar Threads Similar Threads
[Help] GM actions
02/09/2011 - Metin2 Private Server - 3 Replies
Hi everybody, I wanted to know if you have a method to see what commands my GMs use on my PServer (a log for example, or monitoring). Thanks a lot for your help :awesome: PS: sorry I'm not English.
How to edit GuildOfficer Actions Exclamation How to edit GuildOfficer's NPC Actions
08/27/2009 - CO2 Private Server - 2 Replies
Hello Guys, hope anyone have a good solution for this I'm using Source 5065 but after wining GW , when the Guild Leader go to get 3k CPS from GuildOfficer it don't give the Guild Leader anything and also i wanna add Top Guild Leader Halo to this NPC actions i can add it into my Client but can't add this Top Thing action to my Source
Actions
07/09/2005 - Conquer Online 2 - 3 Replies
ok, hi everybody im working on some stuff but i get an error that an action is not found so i want to add that action to some file an sucesful log in, you know where to find action like Action003011923 or whatever?



All times are GMT +2. The time now is 00:42.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.