|
You last visited: Today at 20:13
Advertisement
[HELP] My attempt to make a rb npc
Discussion on [HELP] My attempt to make a rb npc within the CO2 Private Server forum part of the Conquer Online 2 category.
06/19/2009, 09:10
|
#16
|
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
|
A question if the name does not exist such as "InventoryContains" there is an option to add this word to the source. My question is should I save these words so that I don`t receive errors in future?
|
|
|
06/19/2009, 10:13
|
#17
|
elite*gold: 0
Join Date: May 2009
Posts: 27
Received Thanks: 3
|
its only a condition to check if the char has a cleanwater on his inventory, but if you don't want those conditions and want to reborn the character depending on the level without any necessary requirements you may exclude that statement on your code.
Its necessary to make a function called "InventoryContains" as you go along the way, it will be helpful for you to save time making code by just calling the functions you made.
|
|
|
06/19/2009, 14:27
|
#18
|
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
|
Quote:
Originally Posted by quadruple1
Here is my attempt to create an npc that reborns you
Code:
case 211091:// Rb Adder
{
if (LinkBack == 0)
{
Text("Would you like to be reborn? You need to be level 120 or higher to reborn.", CSocket);
Link("1st rb", 1, CSocket);
Link("2nd rb", 2, CSocket);
Link("No thanks", 225, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.Reborn == 0)
if (CSocket.Client.Level >= 120)
{
Reborn(+1, CSocket);
Level(15, CSocket);
}
else
{
Text("You are not high enough level", CSocket);
Link("Damn!", 255, CSocket);
End(CSocket);
}
}
else if (LinkBack == 2)
{
if (CSocket.Client.Level >= 120)
if (CSocket.Client.Reborn == 1)
Reborn(+1, CSocket);
Level (15, CSocket);
}
else
{
Text("You are not high enough level", CSocket);
Link("Damn!", 255, CSocket);
End(CSocket);
}
break;
}
Apparently, when i click on the npc and choose the "1st rb" link, it does not make me 1st rb. anyone know what im doing wrong?
|
Nice Attempt
|
|
|
07/05/2009, 13:53
|
#19
|
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
|
is that working with CoEmu v2
|
|
|
07/05/2009, 14:03
|
#20
|
elite*gold: 0
Join Date: May 2009
Posts: 27
Received Thanks: 3
|
@0105653642
Yes, This thread is CoEmu related source.Actually the code isn't 100 percent done, its actually a fraction of the RB NPC, It only gives you an idea for you to expand.
|
|
|
07/06/2009, 10:53
|
#21
|
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
|
i try it but i got about 4 errors
Error 1 The name 'InventoryContains' does not exist in the current context G:\Co privet Server\CoEmu v2 shydo\CoEmu v2 GameServer\Handlers\NpcTalk.cs 365 49 CoEmu v2 GameServer
Error 2 'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' does not contain a definition for 'Progress' and no extension method 'Progress' accepting a first argument of type 'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' could be found (are you missing a using directive or an assembly reference?) G:\Co privet Server\CoEmu v2 shydo\CoEmu v2 GameServer\Handlers\NpcTalk.cs 386 77 CoEmu v2 GameServer
Error 3 The name 'Reborn' does not exist in the current context G:\Co privet Server\CoEmu v2 shydo\CoEmu v2 GameServer\Handlers\NpcTalk.cs 413 33 CoEmu v2 GameServer
Error 4 The name 'Level' does not exist in the current context G:\Co privet Server\CoEmu v2 shydo\CoEmu v2 GameServer\Handlers\NpcTalk.cs 414 33 CoEmu v2 GameServer
|
|
|
 |
|
Similar Threads
|
my 1st attempt at a mod
07/03/2009 - CO2 Weapon, Armor, Effects & Interface edits - 5 Replies
http://img188.imageshack.us/img188/1749/curvebalde 125.th.jpg
VERSION 2
http://img261.imageshack.us/img261/1749/curvebald e125.th.jpg
VERSION 3
http://img191.imageshack.us/img191/1144/curvebald e125ver3.th.jpg
FINAL VERSION
http://img196.imageshack.us/img196/6381/curveblad e125final.th.jpg
|
attempt of scam?
10/05/2008 - Silkroad Online - 2 Replies
I was at town today when suddenly someone started talking to me... was this an attempt of scam? do people fall for that :confused:
http://img222.imageshack.us/img222/4941/nanizm4.j pg
I remember the same guy said the same thing to me not too long ago when I was on my other character... that time he logged out immediately before I had the chance to reply.
I guess the next step would have been "duplicating" a common item and after gaining my trust, make me give him my sos glaive :p
|
my attempt to get SV
01/07/2007 - Conquer Online 2 - 13 Replies
my frist file edit, hope you like it. sorry if its in the wrong section
|
phishing attempt on e*pvp?
07/23/2006 - Technical Support - 5 Replies
hiho,
ich bekomm seit heute andauernd eine nachricht von kaspersky internet security 6.0
(und immer mit diesem schrecklichen sound >.<)....immer wenn ich auf die startseite
vom epvpforum zugreifen will. sprich... -> http://www.elitepvpers.com/forum/
hier mal ein pic. ansonsten ist alles recht normal aufn forum.
http://free.pages.at/ussj/phishing.JPG
spackt das teil jetzt einfach ab..bzw überempfindlich...oder sollte ich mir gedanken drum machen?
|
All times are GMT +1. The time now is 20:16.
|
|