[Help] Reborn NPC for 1st and 2nd RB

07/03/2009 07:57 LetMeBeTheOne#1
Hello. Need some help on how to put reborn NPC for 1st and 2nd rb. Thanks
07/03/2009 08:04 pro4never#2
Quote:
Originally Posted by LetMeBeTheOne View Post
Hello. Need some help on how to put reborn NPC for 1st and 2nd rb. Thanks
I suggest you look under chat.cs where it has the gm/pm commands. You can then use those for your npc scripting (the reborn/2nd reborn command)

Make sure to add a check to see it the player is already reborn/2nd reborn.

Lowering eq would be the only "hard" part, I haven't looked into that though :O...
07/03/2009 08:18 LetMeBeTheOne#3
I see. but all i want is a code or something like that. I just want to copy it and paste it. I'm not good in coding that's why I'm searching or asking for help. Thanks for the reply Pro4never.
07/03/2009 08:24 pro4never#4
Quote:
Originally Posted by LetMeBeTheOne View Post
I see. but all i want is a code or something like that. I just want to copy it and paste it. I'm not good in coding that's why I'm searching or asking for help. Thanks for the reply Pro4never.
As far as I've seen there are no pre made codes for reborn posted here.

You are alot better off learning to code things yourself. You definitely wont be finding "full" sources here and you may get flamed alot in the process lol.

No offense just that if you are wanting to run a private server you will generally have to do alot of work, alot of it involving coding.
07/03/2009 08:31 LetMeBeTheOne#5
I see thanks for it. But I'm just still learning now the basics of C#.
07/03/2009 12:20 _Emme_#6
I released it for LOTF.
07/03/2009 12:46 Kiyono#7
case 300500
{
if (LinkBack == 0)
{
Text("REBORN NPC", CSocket);
Link("Click here", 1, CSocket);
Link("Or here", 255, CSocket);
Face(0, CSocket);
End(CSocket);
}
if (LinkBack == 1)
{
CSocket.Client.Reborn = 1;
}
break;
}

This could be the base of a reborn NPC.
07/04/2009 08:14 0105653642#8
how i can make eterinty(1st reborn NPS) and alex(2nd reborn NPS) work on CoEmu v2
07/04/2009 12:27 kiltz#9
[Only registered and activated users can see links. Click Here To Register...]


@LetMeBeTheOne

Here is a link to give you an idea how to make an RB NPC.I derived part of the code from the Chat.cs for the command /reborn.I'm not a good coder either but i am trying to exert an effort to improved to be a good coder soon.
07/04/2009 13:38 _Emme_#10
Quote:
Item OldItem = new Item();
for (int i = 0; i < 9; i++)
{
OldItem = Client.Equipment[i];
if (OldItem.ID != 0)
{
string ItemID = (OldItem.ID / 1000).ToString() + Rand.Next(1, 9).ToString() + "0" + OldItem.Quality.ToString();
Client.AddItem(uint.Parse(ItemID), Client.Equipment[i]) //ItemID, Position
}
}
.