|
You last visited: Today at 13:36
Advertisement
Help nobility npc
Discussion on Help nobility npc within the CO2 Private Server forum part of the Conquer Online 2 category.
07/23/2009, 19:14
|
#1
|
elite*gold: 0
Join Date: Jan 2009
Posts: 26
Received Thanks: 0
|
Help nobility npc
i need help to repair the npc for nobility in CoMy source
who can help me ? thanks
|
|
|
07/23/2009, 19:22
|
#2
|
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
|
what is wrong with it?
be more specific
|
|
|
07/23/2009, 19:30
|
#3
|
elite*gold: 0
Join Date: Jan 2009
Posts: 26
Received Thanks: 0
|
the dialog dont talk :S what i need do for work? in top left says You Try To Talk to Npc (NpcID:8410) and the window for donate didnt work >_>
#Edited
|
|
|
07/23/2009, 20:10
|
#4
|
elite*gold: 0
Join Date: Nov 2008
Posts: 108
Received Thanks: 4
|
Whats so hard in getting a specific NPC to work?You're just ... a unskilled person.lol
|
|
|
07/23/2009, 20:18
|
#5
|
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
|
Uhmm maybe the NPCID is wrong? Just a guess... x.X or they don't have this at the end..
Code:
SendPacket(General.MyPackets.NPCFinish());
It's simple once you look at it more..
|
|
|
07/23/2009, 20:22
|
#6
|
elite*gold: 0
Join Date: Jan 2009
Posts: 26
Received Thanks: 0
|
the problem is i cant talk with it, how i do,
Quote:
Uhmm maybe the NPCID is wrong?
|
possibility =(
mm thanks !
|
|
|
07/23/2009, 21:29
|
#7
|
elite*gold: 0
Join Date: May 2009
Posts: 5
Received Thanks: 2
|
replace with that
PHP Code:
if (CurrentNPC == 8410)//Nobility npc { SendPacket(General.MyPackets.NPCSay("LordsCo:Hey,you want to be a nobility?You must give me silvers for it!What you want to be?")); SendPacket(General.MyPackets.NPCLink("King-Cost 500 kk", 1)); SendPacket(General.MyPackets.NPCLink("Queen-Cost 500 kk", 2)); SendPacket(General.MyPackets.NPCLink("i Have only 70 kk", 3)); SendPacket(General.MyPackets.NPCLink("i Have only 50 kk", 4)); SendPacket(General.MyPackets.NPCLink("I have only 35 kk!", 5)); SendPacket(General.MyPackets.NPCLink("I have only 15 kk!", 6)); SendPacket(General.MyPackets.NPCLink("I have only 3 kk!", 7)); SendPacket(General.MyPackets.NPCLink("Good Bye.", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); }
and with that
PHP Code:
if (CurrentNPC == 8410) { if (Control == 1) { if (MyChar.Silvers >= 500000000 && MyChar.Model == 1003) // 500 Million { MyChar.Silvers -= 500000000; SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers)); MyChar.Rank = 1; MyChar.Donation += 500000000; MyChar.SaveRank(); MyChar.SaveDonation(); World.UpdateSpawn(MyChar); World.SendMsgToAll(" " + MyChar.Name + " is a King now! ", "SYSTEM", 2010); } else if (MyChar.Silvers < 500000000) { SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else if (MyChar.Model == 2001 || MyChar.Model == 2002) { SendPacket(General.MyPackets.NPCSay("You are a lady, so you must become a Queen!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } if (Control == 2) { if (MyChar.Silvers >= 500000000 && MyChar.Model == 1005) // 300 Million { MyChar.Silvers -= 500000000; SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers)); MyChar.Rank = 2; MyChar.Donation += 500000000; MyChar.SaveRank(); MyChar.SaveDonation(); World.UpdateSpawn(MyChar); World.SendMsgToAll(" " + MyChar.Name + " is a Queen now! ", "SYSTEM", 2010); } else if (MyChar.Silvers < 500000000) { SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } else if (MyChar.Model == 1003 || MyChar.Model == 1004) { SendPacket(General.MyPackets.NPCSay("You are a man, so you must become a King!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } if (Control == 3) { if (MyChar.Silvers >= 70000000) // 70 Million { MyChar.Silvers -= 70000000; SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers)); MyChar.Rank = 3; MyChar.Donation += 70000000; MyChar.SaveRank(); MyChar.SaveDonation(); World.UpdateSpawn(MyChar); } else { SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } if (Control == 4) { if (MyChar.Silvers >= 50000000) // 50 Million { MyChar.Silvers -= 50000000; SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers)); MyChar.Rank = 4; MyChar.Donation += 50000000; MyChar.SaveRank(); MyChar.SaveDonation(); World.UpdateSpawn(MyChar); } else { SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } if (Control == 5) { if (MyChar.Silvers >= 35000000) // 35 Million { MyChar.Silvers -= 35000000; SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers)); MyChar.Rank = 5; MyChar.Donation += 35000000; MyChar.SaveRank(); MyChar.SaveDonation(); World.UpdateSpawn(MyChar); } else { SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } if (Control == 6) { if (MyChar.Silvers >= 15000000) // 15 Million { MyChar.Silvers -= 15000000; SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers)); MyChar.Rank = 6; MyChar.Donation += 15000000; MyChar.SaveRank(); MyChar.SaveDonation(); World.UpdateSpawn(MyChar); } else { SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } if (Control == 7) { if (MyChar.Silvers >= 3000000) // 3 Million { MyChar.Silvers -= 3000000; SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers)); MyChar.Rank = 7; MyChar.Donation += 3000000; MyChar.SaveRank(); MyChar.SaveDonation(); World.UpdateSpawn(MyChar); } else { SendPacket(General.MyPackets.NPCSay("You dont have enough silvers to become this rank!")); SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255)); SendPacket(General.MyPackets.NPCSetFace(30)); SendPacket(General.MyPackets.NPCFinish()); } } }
Thanks me if Works
|
|
|
07/24/2009, 15:42
|
#8
|
elite*gold: 0
Join Date: Jan 2009
Posts: 26
Received Thanks: 0
|
didnt work, i put it in client.cs is correct?
|
|
|
07/24/2009, 16:19
|
#9
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Yes
|
|
|
07/24/2009, 17:38
|
#10
|
elite*gold: 0
Join Date: Jan 2009
Posts: 26
Received Thanks: 0
|
then idk, dont work :S can u make it and send me? if i wrong in something =Z plz
|
|
|
|
Similar Threads
|
Nobility
08/01/2009 - CO2 Private Server - 8 Replies
kk i got nobility coded in just one problem
the stupid effect goes off every 3 seconds
how can i stop that?
lotf
|
Nobility
07/06/2009 - CO2 Private Server - 15 Replies
okay you guys know how Undress My Shadow's nobility code is for ini?
what about for non ini?
cuz i need help with that
cuz mine saves mysql
|
nobility
07/01/2009 - CO2 Private Server - 0 Replies
Hello, I do not want to continue being a nuisance it is because of it that is the last question that I do, I need that they explain to me since as the code begins to add the system of nobility, it is quite and if someone can help me to arrange the power of xp in coemu v2 agradesco.
Good-bye and thanks
|
how can i put nobility
05/31/2009 - CO2 Private Server - 1 Replies
how can i put nobilty in CoEmu do i need to code it?
|
[NobilitY]
05/05/2009 - CO2 Private Server - 8 Replies
Can anyone please post here how to add nobility rank or somehting like nobility in LOFT / 5017
|
All times are GMT +1. The time now is 13:36.
|
|