Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP]With coding an NPC

Discussion on [HELP]With coding an NPC within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
Question [HELP]With coding an NPC

Hey guys. I'm working on something for my server and I was wondering if maybe you guys could help make it easier for me. What I am looking to make is an NPC that changes the armor/etc your wearing into a different one. But what I came to realize is that in order to do this the NPC would need to check your armor and see if its the right one to upgrade. That means that it would need to check the item number. And Armors have a set of 7 numbers one for each quality for each set. So either I have to enter in the coding to one-by-one check all the possible color/quality combos or figure out a way where I could just check to see if the Item is called for example "EagleCoat". Unfortunately I have no idea how to check the items by name rather than item number haha. Could anyone possibly explain to me how I would check the items by name instead? Thanks much.
FuzionZero is offline  
Old 10/02/2008, 06:11   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
Actually I might have figured out a way to do this. But I'm not ready to try it yet. I will try it when I'm ready and let you guys know if it worked or not. In the mean time though feel free to post your help just in case I fail haha.
FuzionZero is offline  
Old 10/02/2008, 06:50   #3
 
THE BAT's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 63
Received Thanks: 28
use ItemType, ItemType2, and ArmorType

those will help u
THE BAT is offline  
Thanks
1 User
Old 10/02/2008, 06:53   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
Thanks. I'm not at my source atm. What do those define exactly? I am not familiar with those.
FuzionZero is offline  
Old 10/02/2008, 07:06   #5
 
THE BAT's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 63
Received Thanks: 28
Other.ArmorType -> tell you if that item is armor or not
ItemType/2 -> tell you item type
ItemQuality -> tell you what is the Quality of the item
THE BAT is offline  
Thanks
1 User
Old 10/02/2008, 07:13   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 19
Received Thanks: 0
Ahh I see. But what I need is the NPC to check if lets say you choose "Armor" from the NPC. The NPC will then check to see if you are wearing the right armor, such as specifically "EagleCoat", then if you are wearing an "EagleCoat" it will do its task, if not it doesn't. Using those you gave me it doesn't seem like they would be able to do what I need. Unless by Item Type you mean Item Name.
FuzionZero is offline  
Old 10/02/2008, 07:40   #7
 
THE BAT's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 63
Received Thanks: 28
oh i got what you want

you can query the database (items table) with item id and the query return the item name for you

Code:
SELECT ItemName FROM items WHERE ItemID = anyID
THE BAT is offline  
Reply


Similar Threads Similar Threads
*NEW CODING ART!!!..........:::::~WhiteLight D3D~:::::..........*NEW CODING ART!!!
09/21/2010 - WarRock Hacks, Bots, Cheats & Exploits - 25 Replies
http://250kb.de/u/100911/p/m4buevNCZhoQ.PNG Download: Multiupload.com - upload your files to multiple file hosting sites! VirusScan: VirusTotal - Free Online Virus, Malware and URL Scanner Funktionen: SuperJump Teleport NoSpread NoRecoil
Uce Coding+ winhex coding
03/05/2009 - Dekaron - 8 Replies
i was just wondering is it true if u do coding with winhex is it less dc?? tats all cuz uce coding dcs me alot



All times are GMT +2. The time now is 23:03.


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.