PHP Code:
quest voucher begin
state start begin
when 30420.use begin
item.remove(30420,1)
mysql_notselect("UPDATE account.account SET cash=cash+100 WHERE id=(SELECT account_id FROM "..DATABASE..".player WHERE name='"..pc.get_name().."')")
end
when 30421.use begin
item.remove(30421,1)
mysql_notselect("UPDATE account.account SET cash=cash+500 WHERE id=(SELECT account_id FROM "..DATABASE..".player WHERE name='"..pc.get_name().."')")
end
when 30421.use begin
item.remove(30421,1)
mysql_notselect("UPDATE account.account SET cash=cash+1000 WHERE id=(SELECT account_id FROM "..DATABASE..".player WHERE name='"..pc.get_name().."')")
end
end
end
Just edit the Item ID's and its done.
nZya