Jump to content
  • 0

Filter IP To Avoid Geting Double Reward


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Good day, I need a capable Hand to help me with this event, Well, I made this NPC who says a riddle, and the player have to find out wich item is the npc thinking about, Are five questions in total, if the player passes all trials he will be rewarded generously.  

The issue Here is that the player is farming twice or  several times more the correct item, trading it with their other accounts,  and exploting the reward because of this.

The Global limit I set for the rewards are 20, and is not fair that only one dude gather all of them in their acounts. Please help with that part, Npc must store the rewarded ip and once rewarded avoid the same adress to collect the rewards again.  Need to be by ip adress, account bound is useless because he can make a new account and trade the items.

?????????

prontera,183,157,4	script	Laurert#ltrivia	554,{

if($culmin > 19){
mes "^b330ffLaurert^000000";
mes "Ya se reclamaron suficientes premios!";
mes "Solo podiamos entregar 20 recompensas a cuentas distintas, pronto volveremos con mas acertijos";
end;
}

if(#trivia == 0){
soundeffectall "wild_rose_die.wav",0;
mes "^b330ffLaurert^000000";
mes "Quieres jugar a resolver acetijos?";
mes "Yo te dare una pista y tu deberas traerme el objeto relacionado!";
next;
mes "^b330ffLaurert^000000";
mes "Con cada paso completado irán apareciendo estas imagenes.";
sleep2 500; specialeffect 18;
cutin "177_01",2;
sleep2 500; specialeffect 18;
cutin "177_02",2;
sleep2 500; specialeffect 18;
cutin "177_03",2;
sleep2 500; specialeffect 18;
cutin "177_04",2;
sleep2 500; specialeffect 18;
cutin "177_05",2;
next;
cutin "",255;
mes "^b330ffLaurert^000000";
mes "Podrás consultar siempre volviendo a hablar conmigo!";
mes "Asi que empezemos entonces con el desafío!";
next;
set #trivia, 1;
mes "^b330ffLaurert^000000";
mes "PRIMERA ADIVINANZA!";
mes "^FF0000UN OJO PLATEADO QUE PREVIENE EL ENVENENAMIENTO! QUE ES?^000000";
mes "Ve y trae lo que creas que sea!";
end;
}

if(#trivia == 1){
if(countitem(2614) < 1) callsub Falta1;
soundeffectall "wild_rose_die.wav",0;
emotion ET_HUK;
mes "^b330ffLaurert^000000";
mes "No puede ser... Que inteligente eres! Felicidades haz resuelto la primera y mas facil de las 5 trivias.!";
specialeffect 18; cutin "177_01",2;
delitem 2614,1;
announce ""+strcharinfo(0)+" Supero la Primera pregunta del Gato! no vayas a revelar el secreto!.",bc_all,0xFFFF00;
atcommand "@npctalk Velon#vetrivia,Muy impresionante Mi querido Laurert! Estos chicos estan haciendo sus tareas!"; 
next;
set #trivia, 2;
mes "^b330ffLaurert^000000";
mes "No cantes victoria aun! todavia faltan 4 preguntas más por averiguar. Permiteme darte tu próxima pregunta!";
next;
mes "^b330ffLaurert^000000";
mes "Lee atentamente y con mucho cuidado presta atencion a esta!";
mes "^FF0000FRÍO TODO POR ARRIBA, Y MUCHO CALOR POR DEBAJO!.^000000";
next;
mes "^b330ffLaurert^000000";
mes "Me vas a traer 50 items, de lo que creas corresponden al acertijo!";
close3;
}

if(#trivia == 2){
if(countitem(7031) < 50) callsub Falta2;
soundeffectall "wild_rose_die.wav",0;
emotion ET_HUK;
mes "^b330ffLaurert^000000";
mes "No puede ser... Como dedujiste la segunda prueba? Adivinaste que me referia a sartenes no?! HAHA!";
specialeffect 18; cutin "177_02",2;
delitem 7031,50;
announce ""+strcharinfo(0)+" Supero la Segunda pregunta del Gato! no vayas a revelar el secreto!.",bc_all,0xFFFF00;
atcommand "@npctalk Velon#vetrivia,WoA Laurert! Mejor haz preguntas mas dificiles porque vamos a quedar en la ruina!"; 
next;
set #trivia, 3;
mes "^b330ffLaurert^000000";
mes "No cantes victoria aun! todavia faltan 3 preguntas mas por averiguar. Permiteme darte tu proxima pregunta!";
next;
mes "^b330ffLaurert^000000";
mes "Lee atentamente y con mucho cuidado presta atencion a esta!";
mes "^FF0000LOS PERROS LO ADORAN!.^000000";
next;
mes "^b330ffLaurert^000000";
mes "Me vas a traer 10 items, de lo que creas corresponden al acertijo!";
close3;
}

if(#trivia == 3){
if(countitem(628) < 10) callsub Falta3;
soundeffectall "wild_rose_die.wav",0;
emotion ET_HUK;
mes "^b330ffLaurert^000000";
mes "No puede ser... Adiviaste la tercera pregunta! HAHA! Te costo sacar esos miserables Huesillos no?";
specialeffect 18; cutin "177_03",2;
delitem 628,10;
announce ""+strcharinfo(0)+" Supero la Tercera pregunta del Gato! no vayas a revelar el secreto!.",bc_all,0xFFFF00;
atcommand "@npctalk Velon#vetrivia,Maldita Sea.. Al menos tengo la satisfaccion de que le costo trabajo farmear esa shit!"; 
next;
set #trivia, 4;
mes "^b330ffLaurert^000000";
mes "No cantes victoria aun! todavia faltan 2 preguntas mas por averiguar. Permiteme darte tu proxima pregunta!";
next;
mes "^b330ffLaurert^000000";
mes "Lee atentamente y con mucho cuidado presta atencion a esta!";
mes "^FF0000SE ENCUENTRA EN LA MAYORIA DE LOS DESAYUNOS!.^000000";
next;
mes "^b330ffLaurert^000000";
mes "Me vas a traer 50 items, de lo que creas corresponden al acertijo!";
close3;
}

if(#trivia == 4){
if(countitem(574) < 50) callsub Falta4;
soundeffectall "wild_rose_die.wav",0;
emotion ET_HUK;
mes "^b330ffLaurert^000000";
mes "No puede ser... OH NO ... Descubrió que los huevos se sirven en muchos desayunos!";
specialeffect 18; cutin "177_04",2;
delitem 574,50;
announce ""+strcharinfo(0)+" Supero la Cuarta pregunta del Gato! no vayas a revelar el secreto!.",bc_all,0xFFFF00;
atcommand "@npctalk Velon#vetrivia,Carajo Laurert! diste un acertijo demasiado facil!... No lo arrunies con la última pregunta"; 
next;
set #trivia, 5;
mes "^b330ffLaurert^000000";
mes "No cantes victoria aun! todavia falta 1 Pregunta. Permiteme darte la pregunta!";
next;
mes "^b330ffLaurert^000000";
mes "Lee atentamente y con mucho cuidado presta atencion a esta!";
mes "^FF0000EL INGREDIENTE PRINCIPAL PARA UNA GOLOSINA.^000000";
next;
mes "^b330ffLaurert^000000";
mes "Me vas a traer 200 items, de lo que creas corresponden al acertijo!";
close3;
}

if(#trivia == 5){
if(countitem(7182) < 200) callsub Falta5;
soundeffectall "wild_rose_die.wav",0;
emotion ET_HUK;
mes "^b330ffLaurert^000000";
mes "AJAJAJA... TE COSTO TRABAJO?!";
set #trivia, 6;
specialeffect2 18; sleep2 300; cutin "177_04",2;
specialeffect2 18; sleep2 300; cutin "177_05",2;
specialeffect2 18; sleep2 300; cutin "177_04",2;
specialeffect2 18; sleep2 300; cutin "177_05",2;
specialeffect2 18; sleep2 300; cutin "177_04",2;
specialeffect2 18; sleep2 300; cutin "177_05",2;
delitem 7182,200;
getitem 7539,100; getitem 40080,1; getitem 40004,3; getitem 12259,10;
getitem 13995,10; getitem 25655,25; getitem 25290,200; getitem 12210,1;
getitem 7776,3; set Zeny,Zeny+2000000; 


$culmin++;
announce ""+strcharinfo(0)+" Ha Superado las Preguntas del Gato! Felicidades.",bc_all,0xFFFF00;
atcommand "@npctalk Velon#vetrivia,Que remedio! no queda mas que aceptar la derrota!"; 
next;
mes "^b330ffLaurert^000000";
mes "Felicidades, espero que te hayas divertido con nosotros!.";
close3;
}

if(#trivia == 6){
mes "^b330ffLaurert^000000";
mes "FELICIDADES POR COMPLETAR ESTA PRUEBA! Espero que te haya tomado tiempo descubrirlas jehehe!";
next;
mes "^b330ffLaurert^000000";
mes "Este evento solo aplica una vez por cuenta!, Por favor se conciente y permite que otros jugadores tengan la oportunidad de realizarla! Estare entregando unicamente 20 recompensas!";
next;
mes "^b330ffLaurert^000000";
mes "Despues de entregar las 20 recompensas a lo largo del servidor! deshabilitaremos los juegos automaticamente!.";
end;
}

Falta1:
mes "^b330ffLaurert^000000";
soundeffectall "wild_rose_attack.wav",0;
emotion ET_SMILE;
mes "Eres malo jugando esto!";
mes "Ningun item de tu inventario corresponde a mi adivinanza!";
next;
mes "^b330ffLaurert^000000";
mes "Te repito el acertijo!";
mes "^FF0000UN OJO PLATEADO QUE PREVIENE EL ENVENENAMIENTO! QUE ES?^000000";
end;

Falta2:
cutin "177_01",2;
mes "^b330ffLaurert^000000";
soundeffectall "wild_rose_attack.wav",0;
emotion ET_SMILE;
mes "Eres malo jugando esto!";
mes "Ningun item de tu inventario corresponde a mi adivinanza!";
next;
mes "^b330ffLaurert^000000";
mes "Te repito el acertijo!";
mes "^FF0000FRÍO TODO POR ARRIBA, Y MUCHO CALOR POR DEBAJO!.^000000";
mes "Recuerda que son 50 de estos objetos los que debes traer!";
close3;

Falta3:
cutin "177_02",2;
mes "^b330ffLaurert^000000";
soundeffectall "wild_rose_attack.wav",0;
emotion ET_SMILE;
mes "Eres malo jugando esto!";
mes "Ningun item de tu inventario corresponde a mi adivinanza!";
next;
mes "^b330ffLaurert^000000";
mes "Te repito el acertijo!";
mes "^FF0000LOS PERROS LO ADORAN!.^000000";
mes "Recuerda que son 10 de estos objetos los que debes traer!";
close3;

Falta4:
cutin "177_03",2;
mes "^b330ffLaurert^000000";
soundeffectall "wild_rose_attack.wav",0;
emotion ET_SMILE;
mes "Eres malo jugando esto!";
mes "Ningun item de tu inventario corresponde a mi adivinanza!";
next;
mes "^b330ffLaurert^000000";
mes "Te repito el acertijo!";
mes "^FF0000SE ENCUENTRA EN LA MAYORIA DE LOS DESAYUNOS!.^000000";
mes "Recuerda que son 50 de estos objetos los que debes traer!";
end;

Falta5:
cutin "177_04",2;
mes "^b330ffLaurert^000000";
soundeffectall "wild_rose_attack.wav",0;
emotion ET_SMILE;
mes "Eres malo jugando esto!";
mes "Ningun item de tu inventario corresponde a mi adivinanza!";
next;
mes "^b330ffLaurert^000000";
mes "Te repito el acertijo!";
mes "^FF0000EL INGREDIENTE PRINCIPAL PARA UNA GOLOSINA.^000000";
mes "Recuerda que son 100 de estos objetos los que debes traer!";
end;
}


prontera,180,156,6	script	Velon#vetrivia	876,{
soundeffectall "wild_rose_die.wav",0;
mes "^b330ffGato Velon^000000";
mes "No se que mosca lo picó! Ahora le dio por hacer preguntas y regalar objetos!";
end;
}

 

 

 

 

 

 

Edited by Patskie
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  248
  • Reputation:   34
  • Joined:  11/19/11
  • Last Seen:  

I think gepard will do the trick. gepard have unique id check.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...