Emistry

Flower Counting Game v3

Sep 20th, 2011
516
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. prontera,155,157,5 script Flower Counting 437,{
  2. if( getgmlevel() < 60 ){
  3. mes "This is a Flower Counting Game";
  4. mes "I will summon some Flower here, and you have to count the Correct Amount of Flower i summoned.";
  5. mes "^FF0000Only Count for the Flower i mentioned^000000";
  6. close;
  7. }
  8. if( select( "Start Game:RESET" ) == 2 ){
  9. killmonster strcharinfo(3),"All";
  10. deletepset 1;
  11. delwaitingroom;
  12. mes "Done";
  13. close;
  14. }
  15. // How many Seconds Of Delay will be Apply on Players after Answered.
  16. set .DelaySec,15;
  17.  
  18. // What Flowers will be summoned
  19. setarray .MonsterList[0],1934,1935,1936;
  20.  
  21. deletearray .MobCount[0],getarraysize( .MonsterList );
  22. for( set .@x,153; .@x <= 159; set .@x,.@x + 1 )
  23. for( set .@y,146; .@y <= 153; set .@y,.@y + 1 ){
  24. set .Summon,rand( getarraysize( .MonsterList ) );
  25. monster strcharinfo(3),.@x,.@y,"Count Me",.MonsterList[.Summon],1;
  26. set .MobCount[.Summon],.MobCount[.Summon] + 1;
  27. sleep2 5;
  28. }
  29. set .TargetID,rand( getarraysize( .MonsterList ) );
  30. set .TargetCount,.MobCount[.TargetID];
  31. deletepset 1;
  32. defpattern 1,"([^:]+):.*"+.TargetCount+".*", "iRight";
  33. activatepset 1;
  34. delwaitingroom;
  35. waitingroom "Target : "+getmonsterinfo( .MonsterList[.TargetID],0 )+" ",0;
  36. npctalk "Count for the Target Monster's Amount to Win the Game.";
  37. message strcharinfo(0),"Answer for this Round is [ "+.TargetCount+" ].";
  38. close;
  39.  
  40. iRight:
  41. if( #EventDelay > gettimetick(2) ){
  42. dispbottom "Sorry, Time Penalty : Remain "+( #EventDelay - gettimetick(2) )+" seconds.";
  43. }else{
  44. delwaitingroom;
  45. set #EventDelay,gettimetick(2) + .DelaySec;
  46. npctalk "[ "+strcharinfo(0)+" ] , You're Correct.";
  47. killmonster strcharinfo(3),"All";
  48. deletepset 1;
  49. }
  50. end;
  51. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment