Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Couple questions.. about npcs..

Discussion on [Help] Couple questions.. about npcs.. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
[Help] Couple questions.. about npcs..

Im using CoEmu

Hey just a couple questions for some codes before I release a new source Just questions about the remaining npcs'


1. If I was making Guild Director, guy what would the line be for Save Guild... Also if you make someone Deputy what would you put to save that spot.. (Guild seems too much of a hassle and probably won't put it in)

2. Anyone know the furniture NPC's Sub Type numbers? Like what they look like, It's not in npc.ini.

3. What would you put to add socket to weapon. Like

Code:
Hi I can add sockets to your weapon
Ok <--- If you click OK.  Add Socket.
No Thanks
4. What's the code to check an item and to delete and item.

Will add more if I need to


Don't worry probably might read C# tutorials in a few.


Thanks if you help.
n0mansland is offline  
Thanks
1 User
Old 07/02/2009, 22:50   #2
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
3.

Quote:
NpcText("Would you like me to socket your right hand weapon?");
NpcOption("Yes, please",1);
NpcOption("No thank you",255);
}
if (NpcOption == 1)
{
Item Weapon = Client.Equipment[4]; // I think 4 is righthand(?)
ushort DBCost = 1;
if (Weapon.Soc1 != 0 && Weapon.Soc2 == 0)
DBCost = 5;
if (Client.InventoryContains(1088000,DBCost)) // Usage: ItemID,Amount
{
if (Weapon.Soc1 == 0)
Weapon.Soc1 = 255;
else if (Weapon.Soc2 == 0)
Weapon.Soc2 = 255;
else
{
NpcText("Your weapon is already socketed twice!");
NpcOption("Oh, sorry..",255);
}
Client.RemoveItem(1088000,DBCost); // Usage: ItemID,Amount
Client.SendText("Your weapon has been socketed successfully!",ChatType.TopLeft);
}
else
{
Client.SendText("You don't have the required DragonBalls!",ChatType.TopLeft);
}
}
Just wrote it, not tested but meh hopefully you get what I'm saying (hopefully)

P.S: It won't work if you copy+paste, so don't.


Emme
_Emme_ is offline  
Thanks
3 Users
Old 07/02/2009, 22:52   #3
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Sorry forgot to put I'm using CoEmu but I could use that to get an idea how to code it. Thanks.
n0mansland is offline  
Old 07/02/2009, 23:59   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by EmmeTheCoder View Post
3.



Just wrote it, not tested but meh hopefully you get what I'm saying (hopefully)

P.S: It won't work if you copy+paste, so don't.


Emme
Ahh thanks I am gonna try to use a bit of that for my item socketer later. I have teh npc all scripted including the db counting/removal I just didn't have any code handy to check the item in slot and add a socket.

I'll mess around with it later but you at least cleared up some for me ^^
pro4never is offline  
Reply


Similar Threads Similar Threads
couple questions
11/04/2009 - EO PServer Hosting - 1 Replies
1. i got a pserver running. then i tried to run accserver again and it fails..... any idea on fixing that.. ive uninstalled everything to do with my server reinstalled and it still wont work..... 2. how do i get the totems working?cool to have 100 stars n be a king lol no totems for my demon tho so i cant level up legion.... 3.anybody know how i can get the god quests? like divine path.... thanks guys _________________
[Help] Couple questions.. mostly about npcs
06/18/2009 - CO2 Private Server - 13 Replies
Alright i got a couple questions for ya... 1. When you code npcs' you base the case number on their npc type which will make that code for every npc for w/ that type. How do you make it so it's for only 1 npc of that kind.. Like im making 2 arena guards 1 for pk arena 2 for TC pk map and BI pk map... I need to make Number 2 seperate but still the same npc. If you cant just tell me i need to look in the list and find another one... 2.How do you add new portals? I know that some...
[HELP]Just a couple of questions
05/21/2009 - CO2 Private Server - 5 Replies
what is a static ip and how do i get one? if i made a new item fo rmy server does the image have to be saved as dds? How ot make a Gold cup? like whats the UID for talismans? More to come*
Couple o Questions
12/05/2006 - Conquer Online 2 - 2 Replies
First of is it just a prob for me or every1 is experenceing it, did elitepvpers take out the conquer Hacks section or what &#092;and secondly does any1 have a med lvlers? thanks for info
Couple of questions
01/20/2006 - Conquer Online 2 - 0 Replies
Are the memory address the same in CO2 for Stam, HP and Mana as they where in CO1.0? If not what are they, or do I have to fiund them myself >:o ? Has anyone found a way to find a player on the current screen (as in mouse co-ords)? Reason I ask is cause I am thinking of writing an app for my Miner, so when he gets PKed, it logs in my water and revs him, closes the client my water is logged into then continues mining on my Miner client. I could do it with a set mouse position, but then...



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


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