Here u have an example, take me 2 minutes to code...
Is C1 NASC AI, need to compile... i dont test it but it must work...
AI
Code:
class change_level : citizen
{
parameter:
string fnHi = "change_level001.htm";
handler:
EventHandler TALKED(talker)
{
ShowPage(talker,fnHi);
}
EventHandler MENU_SELECTED(ask, reply, talker)
{
if (ask == 1) IncrementParam(talker, @PARAM_EXP, reply);
if (ask == 2) IncrementParam(talker, @PARAM_SP, reply);
}
}
change_level001.htm
Code:
<html><head><body>
Change Level NPC:
<br><a action="bypass -h menu_select?ask=1&reply=300000000">Get EXP (300kk)</a>
<br><a action="bypass -h menu_select?ask=2&reply=1000000">Get SP (1kk)</a>
</body></html>