BUG NPC DEL vote_list 1 > 0 and now vote ...
Status: Abandoned
Brought to you by:
zerosk
BUG !! angry1.gif
found a bug my players, this is done through the browser IE (internet explorer).
1) vote for you come here.
2) you come into the game to check the balance at the NPC.
3) Be updated page and the link is active again visible.
4) Repeat the action again with 1.
Can you fix a bug.
Please!
which npc you're using?
# Vote_shop.txt
# Voto_alt.txt
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
prontera.gat,139,182,6 script Поинт Помощник 936,{
set @dia,gettime(5);
goto start_npc;
start_npc:
mes "[Поинт Помощник]";
mes "^0000FFПривет, чем могу помочь ?^000000";
next;
menu "^008000Сколько у меня Поинтов?^000000",L_Puntos,"^004080Обменять TCG на Поинты^000000",L_Obmen,"Пока...",L_END;
start_2_npc:
next;
mes "[Поинт Помощник]";
mes "^0000FFПривет, чем могу помочь ?^000000";
next;
menu "^008000Сколько у меня Поинтов?^000000",L_Puntos,"^004080Обменять TCG на Поинты^000000",L_Obmen,"Пока...",L_END;
L_Puntos:
query_sql("select account_id,userid from `login` WHERE account_id = '" + playerattached() + "'", @idvote, @namevote$);
query_sql("SELECT COUNT(*) FROM vote_table WHERE account_name = '" + @namevote$ + "' AND collected = '0'", @punto);
if (@punto == 0) goto IMPRIMIR;
set #CASHPOINTS,#CASHPOINTS+@punto;
goto IMPRIMIR;
L_Obmen:
if (countitem(7227) < 1) goto no_zero_obmen;
goto yes_obmen;
yes_obmen:
next;
if (countitem(7227) < 1) goto no_zero_obmen;
mes "[Поинт Помощник]";
mes "Сколько вы хотие обменять ?";
switch(select("1:5:10:20:Назад:Выход")) {
case 1:
if (countitem(7227) < 1) goto no_obmen;
delitem 7227,1;
set #CASHPOINTS,#CASHPOINTS+1;
goto mnogo_and_fin_obmen;
case 2:
if (countitem(7227) < 5) goto no_obmen;
delitem 7227,5;
set #CASHPOINTS,#CASHPOINTS+5;
goto mnogo_and_fin_obmen;
case 3:
if (countitem(7227) < 10) goto no_obmen;
delitem 7227,10;
set #CASHPOINTS,#CASHPOINTS+10;
goto mnogo_and_fin_obmen;
case 4:
if (countitem(7227) < 20) goto no_obmen;
delitem 7227,20;
set #CASHPOINTS,#CASHPOINTS+20;
goto mnogo_and_fin_obmen;
case 5:
goto start_2_npc;
case 6:
goto L_END;
}
mnogo_and_fin_obmen:
next;
mes "[Поинт Помощник]";
mes "Готово.";
switch(select("Ещё обменять:Назад:Выход")) {
case 1:
goto yes_obmen;
case 2:
goto start_2_npc;
case 3:
close;
}
no_obmen:
next;
mes "[Поинт Помощник]";
mes "У вас нехватает TCG Card.";
close;
no_zero_obmen:
next;
mes "[Поинт Помощник]";
mes "У вас нету TCG Card.";
close;
CLEANER:
query_sql("select account_id,userid from `login` WHERE account_id = '" + playerattached() + "'", @idvote, @namevote$);
query_sql("SELECT COUNT(*) FROM vote_table WHERE account_name = '" + @namevote$ + "' AND collected = '0'", @punto);
if (@punto == 0) goto IMPRIMIR;
query_sql("UPDATE vote_table SET collected = '" + @dia + "' WHERE account_name ='" + @namevote$ + "'");
goto CLEANER;
IMPRIMIR:
query_sql("DELETE FROM vote_table WHERE account_name = '" + @namevote$ + "' AND collected <> '" + @dia + "'");
mes "[Поинт Помощник]";
mes "Поинтов : ^0000FF" + #CASHPOINTS + " ^000000";
switch(select("Назад:Выход")) {
case 1:
goto start_2_npc;
case 2:
goto L_END;
}
close;
L_END:
next;
mes "Пока пока... ^^";
close;
}