I was never good with MYSQL but i cant add my coded npc??.
If someone can give me a lil .sql file with my npc in it i would be really happy.
case 10997: // Hell teleporter
{
if (LinkBack == 0)
{
Text("Hello I can help you train after you reach level 130,\n But I will charge you 3,000 cps.\n Would you like to go to Hell?", CSocket);
Link("Yes Please, Here are the cps", 1, CSocket);
Link("No Thank you I cannot afford it.", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.CPs >= 3000)
{
Teleport(2021, 219, 215, 0, CSocket);
CPs(-3000, CSocket);
}
else
{
Text("You dont have 3,000 cps!!", CSocket);
Link("I'm sorry, I forgot it.", 255, CSocket);
End(CSocket);
}
}
break;
}
THX!!!
If someone can give me a lil .sql file with my npc in it i would be really happy.
case 10997: // Hell teleporter
{
if (LinkBack == 0)
{
Text("Hello I can help you train after you reach level 130,\n But I will charge you 3,000 cps.\n Would you like to go to Hell?", CSocket);
Link("Yes Please, Here are the cps", 1, CSocket);
Link("No Thank you I cannot afford it.", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.CPs >= 3000)
{
Teleport(2021, 219, 215, 0, CSocket);
CPs(-3000, CSocket);
}
else
{
Text("You dont have 3,000 cps!!", CSocket);
Link("I'm sorry, I forgot it.", 255, CSocket);
End(CSocket);
}
}
break;
}
THX!!!