Jump to content

Patskie

Community Contributors
  • Content Count

    366
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Patskie

  1. If you want the script to check once the character entered the map then use the method given by @Garr. Take note that after the first check the script would not check it anymore for the second time so the tendency is player can un-equip their gas mask after they entered the map. It would be better if you continuously check if they have the gas mask until they leave the map. Use while instead of if and use some sleep to prevent infinity loop! - script ItemRestrict -1,{ OnPCLoadMapEvent: while ( strcharinfo( PC_MAP ) == "mjo_dun02" || strcharinfo( PC_MAP ) == "mjo_dun03" ) { if ( getequipid( EQI_HEAD_MID ) != 5005 ) { message strcharinfo( PC_NAME ), "You will be out on this map after five seconds"; sleep2 5000; atcommand "@die"; sleep2 500; warp "SavePoint", 0, 0; end; } sleep2 1000; } end;}mjo_dun02 mapflag loadeventmjo_dun03 mapflag loadevent
  2. query_sql "SELECT `last_mac` FROM `login` WHERE `account_id` = '" + .@aid[ .@j ] + "' LIMIT 1", .@mac$;
  3. *announce "<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}};
  4. Use LIMIT 1 on your query_sql command
  5. Hmm yeah you need to loop like 24/7 to be able to get the inquiries as real-time as possible. I raise up that suggestion because the topic starter insist that he wants a support npc in-game.
  6. This can be done without source too, scirpy stores all things in SQL, php checks SQL regularly, and emails, else by using functions in c(source) to send email That's exactly what i think literally. SCRIPT -> SQL <- PHP -> E-MAIL
  7. I remember someone did it however it can be done on windows OS only? Hmm. I don't quite remember. And also, i think this can't be done through script alone.
  8. malaya,301,62,0 script School of Fish#1 844,{if (countitem(632) == 0) goto L_Tidak; if (isequipped(2764)) && (isequipped(2775)){ specialeffect2 EF_BUBBLE; set .@fcast,10; if (isequipped(2550)) { //Fisher's_Muffler set .@fcast,.@fcast - 3; } if (isequipped(2443)) { //Fish_Shoes set .@fcast,.@fcast - 2; } delitem 632,1; progressbar "ffffff",.@fcast; if (rand(1,100) == 1) { getitem 5403,1; specialeffect EF_BUBBLE; announce strcharinfo(0) + " Mendapatkan Ikan !!!",0,"0xff77ff"; end; } set .@rhea_ran,rand(1,9); if (.@rhea_ran == 1) { getitem 756,5; } else if (.@rhea_ran == 2) { getitem 757,5; } else if (.@rhea_ran == 3) { getitem 984,3; } else if (.@rhea_ran == 4) { getitem 12411,1; } else if (.@rhea_ran == 5) { getitem 12257,3; } else if (.@rhea_ran == 6) { getitem 607,3; } else if (.@rhea_ran == 7) { getitem 984,3; } else if (.@rhea_ran == 8) { getitem 985,3; } else { dispbottom "Tidak Mendapatkan apa-apa."; close; } if (rand(1,500) == 1) { getitem 7960,1,"announce"; } if (rand(1,600) == 1) { getitem 12103,1; //Old_Blue_Box announce strcharinfo(0) + " Mendapatkan Bloody Dead Branch !!",0,"0x00ffff"; } if (rand(1,600) == 1) { getitem 7272,1; //RBD announce strcharinfo(0) + " Mendapatkan Rice Ball Doll !!",0,"0x00ffff"; } if (rand(1,500) == 1) { getitem 12214,1; //Old_Blue_Box announce strcharinfo(0) + " Mendapatkan Convex Mirror !!",0,"0x00ffff"; } if (rand(1,500) == 1) { getitem 5317,1; //Old_Blue_Box announce strcharinfo(0) + " Mendapatkan Fisherman Hat !!",0,"0x00ffff"; } if (rand(1,50) == 1) { atcommand "@battleignore"; setoption 0x2,1; sc_start sc_berserk, 1000000000, 1; mes "[Fantastic Anti Bot]"; mes "Bot checking time"; mes "Please input the number you see"; next; switch( rand(1,9) ) { case 1: mes "#################^83F52C##^000000################"; mes "###############^83F52C####^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "###############^83F52C######^000000##############"; input @num; if(@num == 1) break; atcommand "@kick "+strcharinfo(0); end; case 2: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#########^000000##############"; input @num; if(@num == 2) break; atcommand "@kick "+strcharinfo(0); end; case 3: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 3) break; atcommand "@kick "+strcharinfo(0); end; case 4: mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C#########^000000##############"; mes "##################^83F52C##^000000###############"; mes "##################^83F52C##^000000###############"; input @num; if(@num == 4) break; atcommand "@kick "+strcharinfo(0); end; case 5: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#######^000000################"; mes "##################^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 5) break; atcommand "@kick "+strcharinfo(0); end; case 6: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 6) break; atcommand "@kick "+strcharinfo(0); end; case 7: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "################^83F52C##^000000#################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; input @num; if(@num == 7) break; atcommand "@kick "+strcharinfo(0); end; case 8: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 8) break; atcommand "@kick "+strcharinfo(0); end; case 9: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C########^000000##############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 9) break; atcommand "@kick "+strcharinfo(0); end; } next; mes "[Anti Bot]"; mes "Thank you for your patience, you can now move on."; atcommand "@battleignore"; setoption 0x2,0; sc_end sc_berserk; percentheal 100,100; set @kill,0; close; } end; } else { mes "Kamu tidak mempunyai/memakai perlengkapan memancing !"; close;L_Tidak:mes "Kamu tidak mempunyai umpan untuk memancing !";close; }}ayothaya,91,91,0 duplicate(School of Fish#1) Click Here#01 844ayothaya,74,118,0 duplicate(School of Fish#1) Click Here#02 844ayothaya,258,95,0 duplicate(School of Fish#1) Click Here#03 844dewata,218,68,0 duplicate(School of Fish#1) Click Here#04 844dewata,199,71,0 duplicate(School of Fish#1) Click Here#05 844ayothaya,258,100,0 duplicate(School of Fish#1) Click Here#06 844ayothaya,183,106,0 duplicate(School of Fish#1) Click Here#07 844dewata,185,75,0 duplicate(School of Fish#1) Click Here#08 844dewata,128,53,0 duplicate(School of Fish#1) Click Here#09 844dewata,143,68,0 duplicate(School of Fish#1) Click Here#10 844
  9. malaya,301,62,0 script School of Fish#1 844,{if (countitem(632) == 0) goto L_Tidak; if (isequipped(2764)) && (isequipped(2775)){ specialeffect2 EF_BUBBLE; set .@fcast,10; if (isequipped(2550)) { //Fisher's_Muffler set .@fcast,.@fcast - 3; } if (isequipped(2443)) { //Fish_Shoes set .@fcast,.@fcast - 2; } delitem 632,1; progressbar "ffffff",.@fcast; if (rand(1,100) == 1) { getitem 5403,1; specialeffect EF_BUBBLE; announce strcharinfo(0) + " Mendapatkan Ikan !!!",0,"0xff77ff"; end; } set .@rhea_ran,rand(1,9); if (.@rhea_ran == 1) { getitem 756,5; } else if (.@rhea_ran == 2) { getitem 757,5; } else if (.@rhea_ran == 3) { getitem 984,3; } else if (.@rhea_ran == 4) { getitem 12411,1; } else if (.@rhea_ran == 5) { getitem 12257,3; } else if (.@rhea_ran == 6) { getitem 607,3; } else if (.@rhea_ran == 7) { getitem 984,3; } else if (.@rhea_ran == 8) { getitem 985,3; } else { dispbottom "Tidak Mendapatkan apa-apa."; close; } if (rand(1,500) == 1) { getitem 7960,1,"announce"; } if (rand(1,600) == 1) { getitem 12103,1; //Old_Blue_Box announce strcharinfo(0) + " Mendapatkan Bloody Dead Branch !!",0,"0x00ffff"; } if (rand(1,600) == 1) { getitem 7272,1; //RBD announce strcharinfo(0) + " Mendapatkan Rice Ball Doll !!",0,"0x00ffff"; } if (rand(1,500) == 1) { getitem 12214,1; //Old_Blue_Box announce strcharinfo(0) + " Mendapatkan Convex Mirror !!",0,"0x00ffff"; } if (rand(1,500) == 1) { getitem 5317,1; //Old_Blue_Box announce strcharinfo(0) + " Mendapatkan Fisherman Hat !!",0,"0x00ffff"; } if (rand(1,50) == 1) { atcommand "@battleignore"; setoption 0x2,1; sc_start sc_berserk, 1000000000, 1; mes "[Fantastic Anti Bot]"; mes "Bot checking time"; mes "Please input the number you see"; next; switch( rand(1,9) ) { case 1: mes "#################^83F52C##^000000################"; mes "###############^83F52C####^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "###############^83F52C######^000000##############"; input @num; if(@num == 1) break; atcommand "@kick "+strcharinfo(0); end; case 2: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#########^000000##############"; input @num; if(@num == 2) break; atcommand "@kick "+strcharinfo(0); end; case 3: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 3) break; atcommand "@kick "+strcharinfo(0); end; case 4: mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C#########^000000##############"; mes "##################^83F52C##^000000###############"; mes "##################^83F52C##^000000###############"; input @num; if(@num == 4) break; atcommand "@kick "+strcharinfo(0); end; case 5: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#######^000000################"; mes "##################^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 5) break; atcommand "@kick "+strcharinfo(0); end; case 6: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 6) break; atcommand "@kick "+strcharinfo(0); end; case 7: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "################^83F52C##^000000#################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; input @num; if(@num == 7) break; atcommand "@kick "+strcharinfo(0); end; case 8: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 8) break; atcommand "@kick "+strcharinfo(0); end; case 9: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C########^000000##############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 9) break; atcommand "@kick "+strcharinfo(0); end; } next; mes "[Anti Bot]"; mes "Thank you for your patience, you can now move on."; atcommand "@battleignore"; setoption 0x2,0; sc_end sc_berserk; percentheal 100,100; set @kill,0; close; } end; } else { mes "Kamu tidak mempunyai/memakai perlengkapan memancing !"; close;L_Tidak:mes "Kamu tidak mempunyai umpan untuk memancing !";close; }}ayothaya,91,91,0 duplicate(School of Fish#1) Click Here#01 844ayothaya,74,118,0 duplicate(School of Fish#1) Click Here#02 844ayothaya,258,95,0 duplicate(School of Fish#1) Click Here#03 844dewata,218,68,0 duplicate(School of Fish#1) Click Here#04 844dewata,199,71,0 duplicate(School of Fish#1) Click Here#05 844ayothaya,258,100,0 duplicate(School of Fish#1) Click Here#06 844ayothaya,183,106,0 duplicate(School of Fish#1) Click Here#07 844dewata,185,75,0 duplicate(School of Fish#1) Click Here#08 844dewata,128,53,0 duplicate(School of Fish#1) Click Here#09 844dewata,143,68,0 duplicate(School of Fish#1) Click Here#10 844
  10. I have updated the script. Kindly check it out! Happy 2015!
  11. @Snaehild : Change : set .count, 0; to set .count, .count + 1; @DeviantRaze : setarray .Maps$[0],"izlude","geffen","morocc","prontera"; // Possible maps+ bindatcmd "itemshower", strnpcinfo( 3 ) + "::OnItemShower", 99, 99;...+ OnItemShower:OnMinute31:
  12. Patskie

    Happy New Year

    Happy new year to all of you guys!
  13. Change : OnClock0000:OnClock0100:OnClock0200:OnClock0300:OnClock0400:OnClock0500:OnClock0600:OnClock0700:OnClock0800:OnClock0900:OnClock1000:OnClock1100:OnClock1200:OnClock1300:OnClock1400:OnClock1500:OnClock1600:OnClock1700:OnClock1800:OnClock1900:OnClock2000:OnClock2100:OnClock2200: to : OnMinute00:if ( gettime( 3 ) % 2 ) end;
  14. Patskie

    MVP Summoner

    prontera,150,150,0 script Thanatos Summoner 100,{ setarray .items[ 0 ], 512, 1; .delay = 1; // in minutes if ( mobcount( strnpcinfo( 4 ), strnpcinfo( 1 ) + "::OnSummon" ) ) mes "Thanatos is here!"; else if ( gettimetick( 2 ) < #timer ) mes "Thanatos cannot be summoned this time"; else if ( countitem( .items[ 0 ] ) < .items[ 1 ] ) mes "You need " + .items[ 1 ] + "x " + getitemname( .items[ 0 ] ) + " in order to summon thanatos!"; else { mes "Are you sure you want to summon thanatos? I will delete the item requirement in order to summon him."; next; if ( select( "Yes:No" ) - 1 ) close; delitem .items[ 0 ], .items[ 1 ]; monster strnpcinfo( 4 ), 0, 0, "--ja--", 1708, strnpcinfo( 1 ) + "::OnSummon"; } close; OnSummon: #timer = gettimetick( 2 ) + ( .delay * 60 ); end;}
  15. Change all : pk_points++; to : #pk_points++;
  16. Follow syntax : mes ( countitem( item_id ) < amount_of_item_needed ? "^FF0000" : "^009900" ) + countitem( item_id ) + "/" + amount_of_item_needed + " " + getitemname( item_id ) + "^000000";
  17. Plano kong gumawa ng server pero ang sweldo ko ay sapat lang na pang buhay sa sarili ko dahil ayaw ko na humingi sa magulang ko . I need a sponsor yung sponsor na may kakayahan mag fund sa server. Wag niyo ko i message kung ang balak niyo lang eh tumanggap ng donation at isarado ang server after 1 to 3 months. Sagot ko mga ideas natin. Gawin nating maganda ang server na yan! feel free to contact me through the following : Skype : awesomeskie Facebook : https://www.facebook.com/pats.pogi or message me through this community.
  18. Change : OnPCKillEvent: if( strcharinfo(3)!=.map$ ) end; pk_points++; dispbottom "You've gained one point! Your total is ["+pk_points+"] PK point(s)."; end; To : OnPCKillEvent: if ( strcharinfo( 3 ) != .map$ || killedrid == last_killed ) end; last_killed = killedrid; pk_points++; dispbottom "You've gained one point! Your total is ["+pk_points+"] PK point(s)."; end;
  19. This would be awesome if people who knows how to script can collaborate with GmOcean to make this topic as good as possible. This topic should be pinned in my opinion
  20. Everytime you kill/die points should be added/deducted accordingly. Like MMR in dota2
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.