Register for your free account! | Forgot your password?

You last visited: Today at 19:35

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

Advertisement



[Help] Assistant NPC

Discussion on [Help] Assistant NPC within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Jay10291's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 143
Received Thanks: 155
[Help] Assistant NPC

I have an npc that give 2150 cps and 90000 silvers to new players. right now i have it set to give 2150 cps 90000 silvers AND enough exp to level the player to level 2. the reason why i made the npc give exp was so that people could not keep using the npc to get 2150 cps as it checks to make sure the player is level 1 first. HOWEVER, i want to upgrade the npc and make him so you can only use it once. I have tried my best to do this before comming here, but im stuck. I tried
Code:
if (client.Entity.needTimes >= 1)
                                    {
But that didnt work. so how can i make it so you can only claim the items from this NPC once? or at least once a day.
Jay10291 is offline  
Old 06/29/2011, 09:58   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
You would need to modify the database, or perhaps make a new table to store claims from characters, then check to see if the database already has an entry for this npc event and character, if not grant the user the claim, if so then display a message.
Korvacs is offline  
Old 06/29/2011, 11:34   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 168
Received Thanks: 33
Are you adding 1 to it? client.Entity.needTimes++;
zTek is offline  
Old 06/29/2011, 11:36   #4


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
The problem with doing it that way is that whenever you shut down the server that value is just completely reset since it was only stored in memory.
Korvacs is offline  
Reply


Similar Threads Similar Threads
Looking for an assistant
06/13/2011 - CO2 Private Server - 1 Replies
Looking for someone to forward me when I get stuck. I'm about to downgrade from 5501 to 5018. I need someone to answer me a couple of questions before I do it. The questions will be extremely packets and cryptography related. I know this might not be the right section for it, but then again, if I post it in the thread for volunteers, I doubt anybody will look on it. Anybody willing to help, Here am I. [email protected]
Looking for L2 Assistant
03/20/2010 - Lineage 2 - 2 Replies
Like in topic. Looking for Assistant what will be work on retail server in newest update. OR Looking for another program that will be control my HP, CP and soul level and wont be easly detected by NCSoft squad^^ Im on server where most of top ppl form bot clans/ally use help programs and... its hard with someone who for example spam trick 2-3 on sec or else. Need something that will help in war with them. I remember assistant can do that^^
[Release] GnomeTools Assistant RC1
09/05/2009 - World of Warcraft - 1 Replies
Here is GnomeTools Basic tuto: http://www.elitepvpers.com/forum/wow-bots/277990-gn ometools-basic-tutorial.html I found Gnome Assistant to setup quickly gnome's settings, but I get an error, please help : http://img30.imageshack.us/img30/7092/gameerror.p ng Download : http://www.megaupload.com/?d=YX09GVDT
PMap Profile Assistant v3
07/01/2007 - WoW Bots - 6 Replies
Aus dem Glider forum postet by Pwnsh0p hf damit
Rhin's Assistant
11/28/2006 - Diablo 2 - 7 Replies
Multihack which regroups neat features. Should be trustable, but also detectable as it modifies Diablo II's memory. You are warned, use at your OWN risk! Features :



All times are GMT +1. The time now is 19:35.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.