Jump to content

LearningRO

Members
  • Posts

    778
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by LearningRO

  1. Sorry @AnnieRuru i try your last script but only read frist array guild_id - script WoE -1,{ OnInit: setarray .guild_id, 77,78; // allowed guild ID .guild_id_size = getarraysize(.guild_id); setarray .map$, "prtg_cas04","prtg_cas03"; // restricted map .map_size = getarraysize(.map$); for (.@i = 0; .@i < .map_size; .@i++) setmapflag .map$[.@i], mf_loadevent; end; OnPCLoadMapEvent: // GMs should bypass this kind of things // if ( getgmlevel() >= 99 ) end; .@map$ = strcharinfo(3); for (.@i = 0; .@i < .map_size; .@i++) { if (.@map$ == .map$[.@i]) { // is on the map for ( .@j = 0; .@j < .guild_id_size; .@j++ ) { if (getcharid(2) == .guild_id[.@j]) { mes "sukses"; end; // if the condition met, the player isn't warp away } mes "You are not allowed"; end; } } end; } } this script only read frist array in guild_id so player with guild_id "78" still can entry the map Update : i think this script only read frist array on guild_id and map$
  2. ahh thx u @AnnieRuru and sorry about that i didn't know have 2 annieruru in here
  3. fully working what i want thanks a loot @Annie Ruru
  4. hi, @Emistry yeah it' work but when i want to try to make multiple guild_Id it only read first array guild_id and player with guild_Id "2" can't enter maps this is was i try - script sample -1,{ OnInit: setarray .guild_id, 1, 2; .guild_id_size = getarraysize(.guild_id); setarray .map$, "prtg_cas04"; .map_size = getarraysize(.map$); for (.@i = 0; .@i < .map_size; .@i++) setmapflag .map$[.@i], mf_loadevent; end; OnPCLoadMapEvent: .@map$ = strcharinfo(3); for (.@i = 0; .@i < .map_size; .@i++) { if (.@map$ == .map$[.@i]) { for (.@j = 0; .@j < .guild_id_size; .@j++) if (getcharid(2) != .guild_id[.@j] ) mes "Debug"; end; } } end; }
  5. hi, @Annie Rurui try to change but still can't read guild_id or nothing happern player without guild or player with guild_id "3" still can enter map - script sample -1,{ OnInit: setarray .guild_id, 1, 2; .guild_id_size = getarraysize(.guild_id); setarray .maps$, "prtg_cas04"; .map_size = getarraysize(.maps$); for (.@i = 0; .@i < .map_size; .@i++) setmapflag .maps$[.@i], mf_loadevent; end; OnPCLoadMapEvent: .@map$ = strcharinfo(3); for (.@j = 0; .@j < .map_size; .@j++) { if (.@map$ == .map$[.@i]) { if (getcharid(2) != .guild_id[.@j] && .guild_id[.@j] > 0) Mes "Testing"; end; } } end; }
  6. still not working @Emistry i think script didn't read array guild_id
  7. still not working sir player still can enter map castle and didn't show message "MES" @Alayne can u help me with this script
  8. sir not working script didn't read guild id, player still can enter without guild or guild not list in my array - script checkguild -1,{ OnPCLoadMapEvent: for ( .@q = 0; .@q < getarraysize(.maps$); .@q++) if(strcharinfo(3) != .map$[.@q]) end; for ( .@i = 0; .@i < getarraysize(.guild_id); .@i++) if ( getcharid(2) != .guild_id[.@i]) mes "mes"; end; OnInit: setarray .guild_id, 76, 77; // enter guild id setarray .maps$,"prtg_cas04","prtg_cas02"; // add maps end; } this is what i was try
  9. actually I will implement these scripts in the map castle which already have mapflag loadevent, so if I use this script, all the maps that have a loadevent mapflag will be affected. is there any solution so that only affects the maps I want only
  10. somebody can make me script to filter guild in certain map and only guild id set in list array can enter that map another will be warp to savepoint
  11. hi, all someone can make me script like floating rate drop but only certain item ex: double drop for Red Potion and Blue Potion thx b4
  12. i think there is an error format in the item costume on iteminfo.lua show us your item duplicate in here
  13. hi, all when i use item aloevera and then use skill cloacking or hiding why it;s override buff provoke? and
  14. how to set max 3 times to use this npc all Izlude,46,75,4 script Free Enchant 47,{ mes "[Free Enchant]"; mes "I can give free +2 enchant stat in your Freebies."; next; mes "[Free Enchant]"; mes "Select your equipment"; menu "Harmonia Coat",l_erdvn,"GM Harmonia Coat",l_ermnk,"never mind ...",-; next; mes "[Free Enchant]"; mes "Ok.."; end; l_erdvn: next; if(countitem(32022)<1) goto l_gadaeq; mes "[Free Enchant]"; mes "Select your options"; next; menu "STR +2",l_erdvnstr, "AGI +2",l_erdvnagi, "VIT +2",l_erdvnvit, "INT +2",l_erdvnint, "DEX +2",l_erdvndex, "LUK +2",l_erdvnluk; l_erdvnstr: mes "[Free Enchant]"; delitem 32022,1; getitem2 32022,1,1,0,0,0,0,0,4701; mes "Here your enchanted eris Harmonia Coat."; end; l_erdvnagi: mes "[Free Enchant]"; delitem 32022,1; getitem2 32022,1,1,0,0,0,0,0,4731; mes "Here your enchanted eris Harmonia Coat."; end; l_erdvnvit: mes "[Free Enchant]"; delitem 32022,1; getitem2 32022,1,1,0,0,0,0,0,4741; mes "Here your enchanted eris Harmonia Coat."; end; l_erdvnint: mes "[Free Enchant]"; delitem 32022,1; getitem2 32022,1,1,0,0,0,0,0,4711; mes "Here your enchanted eris Harmonia Coat."; end; l_erdvndex: mes "[Free Enchant]"; delitem 32022,1; getitem2 32022,1,1,0,0,0,0,0,4721; mes "Here your enchanted eris Harmonia Coat."; end; l_erdvnluk: mes "[Free Enchant]"; delitem 32022,1; getitem2 32022,1,1,0,0,0,0,0,4751; mes "Here your enchanted eris Harmonia Coat."; end; l_ermnk: next; if(countitem(32015)<1) goto l_gadaeq; mes "[Free Enchant]"; mes "What do you want?"; next; menu "STR +2",l_ermnkstr, "AGI +2",l_ermnkagi, "VIT +2",l_ermnkvit, "INT +2",l_ermnkint, "DEX +2",l_ermnkdex, "LUK +2",l_ermnkluk; l_ermnkstr: mes "[Free Enchant]"; delitem 32015,1; getitem2 32015,1,1,0,0,0,0,0,4701; mes "Here your enchanted eris GM Harmonia Coat."; end; l_ermnkagi: mes "[Free Enchant]"; delitem 32015,1; getitem2 32015,1,1,0,0,0,0,0,4731; mes "Here your enchanted eris GM Harmonia Coat"; end; l_ermnkvit: mes "[Free Enchant]"; delitem 32015,1; getitem2 32015,1,1,0,0,0,0,0,4741; mes "Here your enchanted eris GM Harmonia Coat"; end; l_ermnkint: mes "[Free Enchant]"; delitem 32015,1; getitem2 32015,1,1,0,0,0,0,0,4711; //set ##freeenchant,3; mes "Here your enchanted eris GM Harmonia Coat"; end; l_ermnkdex: mes "[Free Enchant]"; delitem 32015,1; getitem2 32015,1,1,0,0,0,0,0,4721; mes "Here your enchanted eris GM Harmonia Coat"; end; l_ermnkluk: mes "[Free Enchant]"; delitem 32015,1; getitem2 32015,1,1,0,0,0,0,0,4751; mes "Here your enchanted eris GM Harmonia Coat"; end; l_gadaeq: mes "[Free Enchant]"; mes "You did not bring the required equip."; end; } OnInit: delwaitingroom; waitingroom "Free Enchantment",0; end; }
  15. hi, @Akkarin do you know where location this image?? i wan to change this image
  16. sorry, you say this "The images are served from data/items/icons/" I mean, how do I bring up images of diabolus ring in data/items/icons/ should the berfomat icon? is it like this? µ Æ º ¾ ð ¼ ½ º ¸ ç · µ. ico << sprite name diabolus ring or diabolus_ring.ico sorry bad english i use translator
  17. hi, @Akkarin can u give me example what should i do to show image
  18. this my script recycle_costume.txt
  19. hi, @Alayne sorry to bump this topic, but i have serously bug from your script ex: i set my list costume id into set .class3$,"19537"; player still can sell petfood(with id 537) and get point how to fix that thxx uu
  20. i get this message on log Memory manager: Memory leaks found at 2018/03/19 15h28m08s (Git Hash 7113743cb47a029e7ab039b006a02398c3d9783b). 0001 : pc.cpp line 2367 size 41 address 0x0xab179064 0002 : pc.cpp line 2368 size 34 address 0x0xab179be4 0003 : pc.cpp line 2368 size 34 address 0x0xab17aba4 0004 : pc.cpp line 2367 size 41 address 0x0xab17b564 how to fix this all???
  21. Hi, All i wan to make like WOE tournament and only listed guild can entry map WOE. someone can make me this script??? thx b4 [SOLVED] By myself this is my script - script WoE -1,{ OnInit: setarray .map$[0],"prtg_cas04","prtg_cas02","prtg_cas03"; setarray .guild[0],431,441,440; end; OnPCLoadMapEvent: if ( strcharinfo(3) == .map$[0] && getcharid(2) != .guild[0] ) { mes "er"; close; } }
×
×
  • Create New...