Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. list your GM account ID there.
  2. change the addtimer to check every short interval and save in a variable to allow you to count it later. example: https://pastebin.com/ry0JJp6U https://pastebin.com/Gqs8WCRu
  3. set .round_item_id, (.Random) ; change to set .round_item_id, .Random;
  4. mes "Enter Guild Name"; input .@name$; query_sql( "SELECT `guild_id` FROM `guild` WHERE `name` LIKE '"+escape_sql( .@name$ )+"' LIMIT 1",.@gid ); if ( .@gid ) { query_sql( "SELECT COUNT(`castle_id`) FROM `guild_castle` WHERE `guild_id` = "+.@gid, .@total_castle ); mes "Guild: "+.@name$; mes "Owned "+.@total_castle+" Castle(s)"; } else { mes "Guild '"+.@name$+"' not found."; } close; you can try this.
  5. 6746,7914,969,31120 check your item_db for all these items.... especially 31120.
  6. https://docs.travis-ci.com/user/getting-started/
  7. you can read the guide here. http://herc.ws/wiki/Thor_Patcher#Custom_Buttons
  8. mes "Enter Guild Name"; input .@guild_name$; query_sql( "SELECT `guild_id` FROM `guild` WHERE `name` LIKE '"+escape_sql( .@guild_name$ )+"' LIMIT 1",.@gid ); if ( .@gid ) { mes "Reward sent."; close2; addrid(3,0,.@gid); getitem 512,1; getitem 512,2; getitem 512,3; mes "Gained Guild Rewards."; } close; something like this...
  9. find announce "[Party Battle Royale] Battle Royale match has ended.",bc_all,0xD6A4E6; mapwarp "bat_b02","prontera",156,185; add below. addrid(2,0,getcharid(1)); getitem 512,1; getitem 512,2; getitem 512,3;
  10. warp .Map$,0,0; set .Hunter[getarraysize( .Hunter )], getcharid(3); set #HuntRoomDelay, gettimetick(2); // please don't set the deny variable into the future, if admin adjust the setting to decrease the value, player will experience long deny set #FarmHunt,0; end; change to if ( countitem( 512 ) >= 10 ) { delitem 512,10; warp .Map$,0,0; set .Hunter[getarraysize( .Hunter )], getcharid(3); set #HuntRoomDelay, gettimetick(2); // please don't set the deny variable into the future, if admin adjust the setting to decrease the value, player will experience long deny set #FarmHunt,0; end; } else { mes "You need 10 Apple."; close; }
  11. query_sql( "SELECT `value` FROM `acc_reg_num` WHERE `account_id` = "+getcharid(3)+" AND `key` LIKE '#SECURITYCODE'",.@value ); mes "Your security code = "+.@value; or you can just use this mes "Your security code = "+#SECURITYCODE;
  12. OnPCKillEvent: if (killerrid != getcharid(3)) { if (( agitcheck() || agitcheck2() ) && compare(strcharinfo(3),"g_cas")) { getitem 512,3; } } end;
  13. OnPCKillEvent: if (killerrid != getcharid(3)){ announce rid2name(killerrid)+" killed "+rid2name(killedrid),bc_map; } end;
  14. any min or max settings applied to all related items.
  15. use the checkquest or isbegin_quest script command to check whether the player have the quest or not before you assign a new quest.
  16. You can try this should be still working ....
  17. prontera,237,313,4 script Nun 915,{ change to prontera,237,313,4 script Nun 915,10,10,{ 10,10 = your area size to trigger the OnTouch event.
  18. @Dissidia it's better if you add the detachrid to avoid any issue after the script running. otherwise, this would be safer way function Func_Prizes { if (attachrid(getcharid(3, strcharinfo(0, getarg(0))))) { announce "Congrats "+strcharinfo(0)+", a winner in the "+getarg(1)+" Event.",bc_all|bc_blue; getitem $@RewardID,$@RewardQNT; Zeny += $@RewardZeny; detachrid; } return; }
  19. you can adjust just edit the mob_db and set the mob to plant mode which will receive 1 damage per hit.
  20. you can use this script https://pastebin.com/qh15CLjf set on which hours/days it would trigger the bonus exp rate, and which hours/days will trigger the normal exp rate.
  21. you can use normal cashshop like this... npc/merchants/cash_trader.txt then add this bindatcmd script. - script atcmd_example -1,{ OnInit: bindatcmd "cshop",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: callshop "<shop_name>",1; end; } You should avoid this kind of reply unless you specify the reason together or at least mention it at the very beginning.
  22. prontera,155,181,4 script Entrance_NPC 45,{ getmapxy( @last_map$,@last_x,@last_y,0 ); warp "prt_in",0,0; end; } prontera,155,181,4 script Exit_NPC 45,{ if (@last_map$ == "") { @last_map$ = "SavePoint"; @last_x = 0; @last_y = 0; } warp @last_map$,@last_x,@last_y; end; }
  23. conf/battle/status.conf#L30-L32 edit the value to 90.
×
×
  • Create New...