[Question] lotf noobie question :)

02/21/2010 18:15 [X]-Cape#1
first problem solved xD next one ...
whats rong at this code ? :|

if (CurrentNPC == 999)
{
if (Control == 1)
{
if (MyChar.CPs += 1000) ;
{
MyChar.CPs -= 1000;
MyChar.AddItem("1072031-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));

}
}
}



i want to make a npc that gives me and emerald for 1k cps :| any help please ?
02/21/2010 18:17 Arcо#2
Quote:
Originally Posted by [X]-Cape View Post
ok , so i add a npc in the database with the name WelcomeNpc . i put his mech (how it looks ) 210 lets say . I open server , log and i see the npc there but with the name that the 210 npc haves . Hope u guys understand
So , how do i make my own npc with the name i want :|
Here is a guide.
Hope it helps.
[Only registered and activated users can see links. Click Here To Register...]
02/21/2010 20:32 PeTe Ninja#3
is this 5017?
02/21/2010 20:35 Arcо#4
Quote:
Originally Posted by PeTe Ninja View Post
is this 5017?
That guide will work for any source.
02/21/2010 20:38 PeTe Ninja#5
im asking him if hes working on 5017 if he is, ill help him in anway possible...
02/21/2010 20:39 Arcо#6
Quote:
Originally Posted by PeTe Ninja View Post
im asking him if hes working on 5017 if he is, ill help him in anway possible...
Ah lol my bad didn't really get what you were saying.
02/22/2010 16:38 [X]-Cape#7
i managed to spawn a npc with my own name now im trying to figure out how to make exp potion work :|
02/22/2010 21:03 PeTe Ninja#8
search for

Exp Potion [ The Real Way ] << that one works the best. ( that was publicly resleased)
02/22/2010 23:52 Arcо#9
if (CurrentNPC == 999)
{
if (Control == 1)
{
if (MyChar.CPs >= 1000) ;
{
MyChar.CPs -= 1000;
MyChar.AddItem("1072031-0-0-0-0-0", 0, (uint)General.Rand.Next(346623472));

}
}
}
02/23/2010 01:32 Decker_#10
[Only registered and activated users can see links. Click Here To Register...]
02/23/2010 06:00 [X]-Cape#11
thanks arco. ,oh and deker (i hope i spelld it right ) i use power source co so i get some errors :|
02/23/2010 21:48 PeTe Ninja#12
hey cape.. PM me.. i can help you with any problems you get in LOTF... v5017.. cuz thats teh funnest.
02/24/2010 16:51 [X]-Cape#13
wooot :handsdown: this will help me alot . iill spart pm`ing u in 1 sec lol
02/24/2010 19:57 Basser#14
Ehm.
You guys forgot something important.
LOTF requires you to send a packet to update your current CPs.
Its not hard to find the line, but I haven't got LOTF myself.
If you don't do this, it will not show your amount of CPs untill you relog or refresh (by using a working npc, or by doing what ever that will refresh it).
02/24/2010 20:04 Arcо#15
Quote:
Originally Posted by Hepatitis X View Post
Ehm.
You guys forgot something important.
LOTF requires you to send a packet to update your current CPs.
Its not hard to find the line, but I haven't got LOTF myself.
If you don't do this, it will not show your amount of CPs untill you relog or refresh (by using a working npc, or by doing what ever that will refresh it).
Ah you're right, I haven't used 5017 in ages so I totally forgot about that.