does this look right for npc dialog?
(arco's)
(arco's)
Code:
case 333333://test id
{
if (Client.Money >= 100)
{
dialog(Client, new string[] {
"AVATAR 30",
"TEXT You got 100Silvers",
"OPTION-1 Do you want it?",
"OPTION-2 You dont need them"
});
}
else
{
dialog(Client, new string[] {
"AVATAR 30",
"TEXT You need 10silvers",
"OPTION-2 Okay"
});
}
if (OptionID == 1)
{
Client.Money -= 100;
dialog(Client, new string[] {
"AVATAR 30",
"TEXT Yes",
"OPTION-1 Here u are"
});
}
break;
}