Lucky Time ! Bless

02/16/2009 21:44 lol-lol#1
I need to know how to put luckytime (bless) in a skill book or in a npc ....
lol ... i am using CoV2 THX
02/16/2009 22:06 traplx#2
CoV2 heve Lucky typ use Command /skill 9876 0
02/17/2009 00:05 -Reflexis-#3
noob hes asking for luckytime in a skill book or in a npc
look to the profcenter npcs
02/17/2009 16:46 turk55#4
here is a npc for it:

Code:
if (CurrentNPC == 123456)
{
                                SendPacket(General.MyPackets.NPCSay("Do you wish to learn LuckyTime (Bless), but you have to be lvl 120 atleast. "));
                                SendPacket(General.MyPackets.NPCLink("Yes I want to learn", 1));
                                SendPacket(General.MyPackets.NPCLink("No,thx i don't want to learn it.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
}
Code:
if (CurrentNPC = 123456)
{
if (Control == 1)
                                        if (MyChar.Level >= 120)
                                            MyChar.LearnSkill(9876, 0);
}
else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Sorry you are not lvl 120 so you can't learn the skill."));
                                        SendPacket(General.MyPackets.NPCLink("I see", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
02/17/2009 18:05 lol-lol#5
Thanks ... i will try it .. and i knew the command of it :S thanks
02/17/2009 18:19 lol-lol#6
But plz i don't know when i add in database .... Flags ... and direction .. what number i must put in these?
02/17/2009 18:22 unluckyunknown45654554#7
flag=2 direction =2
02/17/2009 18:32 lol-lol#8
Quote:
Originally Posted by unluckyunknown45654554 View Post
flag=2 direction =2
k ty
02/17/2009 21:14 PeTe Ninja#9
UID = (random number make sure not used) ( need this for coding inside)

TYPE = ( the model of the npc )

Name = ( THE NAME IN THE DATABASE NOT IN THE GAME)

Flags=(2)

Direction=(it can be 0 or 2)

MAPID=( THE MAP YOU WANT IT IN (exa. 1002 = TC , 1036 = MARKET )

XCORD=(THE X CORD (exa. 543,200) 543 is the x cooord

YCORD=( THE Y CORD ( exa. 543,200 ) 200 is the y coord

SUBTYPe = ( i put that at 0, truly i have no clue what its for :D )

02/23/2009 01:51 doku66655#10
Quote:
Originally Posted by turk55 View Post
here is a npc for it:

Code:
if (CurrentNPC == 123456)
{
                                SendPacket(General.MyPackets.NPCSay("Do you wish to learn LuckyTime (Bless), but you have to be lvl 120 atleast. "));
                                SendPacket(General.MyPackets.NPCLink("Yes I want to learn", 1));
                                SendPacket(General.MyPackets.NPCLink("No,thx i don't want to learn it.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
}
Code:
if (CurrentNPC = 123456)
{
if (Control == 1)
                                        if (MyChar.Level >= 120)
                                            MyChar.LearnSkill(9876, 0);
}
else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Sorry you are not lvl 120 so you can't learn the skill."));
                                        SendPacket(General.MyPackets.NPCLink("I see", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
Ummm... In which section and where in C# must i add this...?
02/23/2009 03:06 PeTe Ninja#11
just search for if (CurrentNPC == 7500) , find the dialog part put that above it, then search for 7500 do part and put the second part above it

or in a skillbook, in character.cs just find the item Id ( in your sorce, coitems.txt ) search for whatever skill book you dont use and do something like

if (ItemId == 3290) // idk if its itemid im on my sister laptop i dont have anything on here
{
MyChar.LearnSkill(9876, 0) // learns the skill :P
}
02/23/2009 06:49 turk55#12
Quote:
Originally Posted by doku66655 View Post
Ummm... In which section and where in C# must i add this...?
1> you need atleast C#
2> in client.cs
02/28/2009 14:52 DungMaster#13
Quote:
Originally Posted by turk55 View Post
here is a npc for it:

Code:
if (CurrentNPC == 123456)
{
                                SendPacket(General.MyPackets.NPCSay("Do you wish to learn LuckyTime (Bless), but you have to be lvl 120 atleast. "));
                                SendPacket(General.MyPackets.NPCLink("Yes I want to learn", 1));
                                SendPacket(General.MyPackets.NPCLink("No,thx i don't want to learn it.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
}
Code:
if (CurrentNPC = 123456)
{
if (Control == 1)
                                        if (MyChar.Level >= 120 && MyChar.RBCount >= 1// =])<<<<<<<<<<<!!! o.o"
                                            MyChar.LearnSkill(9876, 0);
}
else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Sorry you are not lvl 120 so you can't learn the skill."));
                                        SendPacket(General.MyPackets.NPCLink("I see", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }


if (MyChar.Level >= 120 && MyChar.RBCount >= 1// =])
MyChar.LearnSkill(9876, 0);
}