Jump to content

LearningRO

Members
  • Posts

    778
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by LearningRO

  1. hi, all i got error like this when use script guild buffer [Error]: script:run_script_main: infinity loop ! this is the script buffer set y, 0; goto L_guildassumptio; L_guildassumptio: if ($guildassumptio[y]==getcharid(2)) goto L_buffassumptio; if (y>=getarraysize($guildassumptio)){ set y, 0; goto L_guildmagnificat; } if (y<=getarraysize($guildassumptio)) set y,y+1; goto L_guildassumptio; end; L_buffassumptio: specialeffect(EF_ASSUMPTIO, AREA, playerattached()); sc_start SC_ASSUMPTIO,0,5; set y, 0; goto L_guildmagnificat; end; L_guildmagnificat: if ($guildmagnificat[y]==getcharid(2)) goto L_buffmagnificat; if (y>=getarraysize($guildmagnificat)){ set y, 0; goto L_guildangelus; } if (y<=getarraysize($guildmagnificat)) set y,y+1; goto L_guildmagnificat; end; L_buffmagnificat: specialeffect(EF_MAGNIFICAT, AREA, playerattached()); sc_start SC_MAGNIFICAT,0,5; set y, 0; goto L_guildangelus; end; L_guildangelus: if ($guildangelus[y]==getcharid(2)) goto L_buffangelus; if (y>=getarraysize($guildangelus)){ set y, 0; goto L_guildgloria; } if (y<=getarraysize($guildangelus)) set y,y+1; goto L_guildangelus; end; L_buffangelus: specialeffect(EF_ANGELUS, AREA, playerattached()); sc_start SC_ANGELUS,0,10; set y,0; goto L_guildgloria; end; L_guildgloria: if ($guildgloria[y]==getcharid(2)) goto L_buffgloria; if (y>=getarraysize($guildgloria)){ set y, 0; goto L_guildimpositio; } if (y<=getarraysize($guildgloria)) set y,y+1; goto L_guildgloria; end; L_buffgloria: specialeffect(EF_GLORIA, AREA, playerattached()); sc_start SC_GLORIA,0,5; set y,0; goto L_guildimpositio; end; L_guildimpositio: if ($guildimpositio[y]==getcharid(2)) goto L_buffimpositio; if (y>=getarraysize($guildimpositio)){ set y, 0; goto L_guildspirit; } if (y<=getarraysize($guildimpositio)) set y,y+1; goto L_guildimpositio; end; L_buffimpositio: specialeffect(EF_IMPOSITIO, AREA, playerattached()); sc_start SC_IMPOSITIO,0,5; set y,0; goto L_guildspirit; end; L_guildspirit: if ($guildspirit[y]==getcharid(2)) goto L_buffspirit; if (y>=getarraysize($guildspirit)){ set y, 0; } if (y<=getarraysize($guildspirit)) set y,y+1; goto L_guildspirit; end; L_buffspirit: set y,0; percentheal 100,100; switch( Class ) { case Job_Star_Gladiator: case Job_Star_Gladiator2: set .@skill_id, 448; break; case Job_SuperNovice: set .@skill_id, 451; break; case Job_Soul_Linker: set .@skill_id, 461; break; case Job_Novice_High: case Job_Swordman_High: case Job_Mage_High: case Job_Archer_High: case Job_Acolyte_High: case Job_Merchant_High: case Job_Thief_High: set .@skill_id, 494; break; default: switch( BaseJob ) { case Job_Alchemist: set .@skill_id, 445; break; case Job_Monk: set .@skill_id, 447; break; case Job_Sage: set .@skill_id, 449; break; case Job_Crusader: set .@skill_id, 450; break; case Job_Knight: set .@skill_id, 452; break; case Job_Wizard: set .@skill_id, 453; break; case Job_Priest: set .@skill_id, 454; break; case Job_Bard: case Job_Dancer: set .@skill_id, 455; break; case Job_Rogue: set .@skill_id, 456; break; case Job_Assassin: set .@skill_id, 457; break; case Job_Blacksmith: set .@skill_id, 458; break; case Job_Hunter: set .@skill_id, 460; break; } break; } if (.@skill_id) { specialeffect(EF_SOULLINK, AREA, playerattached()); sc_start4 SC_SOULLINK,350000,5,.@skill_id,0,0; } and this script for buy buffer prt_in,45,96,3 script Guild Buffer 4_F_ARUNA_POP,{ mes "[Guild Buffs]"; if(getcharid(2)==0){ mes "I'm sorry, I can only help you, if you're in a guild."; close; } mes "Hello, I offer buffs for guilds."; mes "Please select the buff you want to buy for your guild."; mes "The buffs you bought will be permanently available for your guild."; next; mes "[Guild Buffs]"; mes "Guild Leaders can remove buffs by selecting to buy them and then confirming."; next; switch(select("Assumptio:Magnificat:Angelus:Gloria:Impositio Manus:Spirits")){ case 1: set buff$, "Assumptio Level 5"; set .@price, 10000; set buffon$, "assu"; goto L_selectassumptio; case 2: set buff$, "Magnificat Level 5"; set .@price, 5000; set buffon$, "magni"; goto L_selectmagnificat; case 3: set buff$, "Angelus Level 10"; set .@price, 5000; set buffon$, "angelus"; goto L_selectangelus; case 4: set buff$, "Gloria Level 5"; set .@price, 5000; set buffon$, "gloria"; goto L_selectgloria; case 5: set buff$, "Impositio Manus Level 5"; set .@price, 5000; set buffon$, "impo"; goto L_selectimpositio; case 6: set buff$, "Spirits Level 4 (excluding Rebirth Spirit and Soul Linker Spirit)"; set .@price, 10000; set buffon$, "spirit"; goto L_selectspirit; } L_buffselect: mes "[Guild Buffs]"; mes "So, you want to buy " + buff$ + " for " + .@price + " Cash?"; next; switch(select("Yes, please:No, thank you")){ case 1: if (.@price) { set #CASHPOINTS, #CASHPOINTS; if (#CASHPOINTS < .@price) goto L_nobuffs; #CASHPOINTS -= .@price; if (buffon$=="assu"){ set z, getarraysize($guildassumptio); set $guildassumptio[z+1], getcharid(2); goto L_buffbought; } if (buffon$=="magni"){ set z, getarraysize($guildmagnificat); set $guildmagnificat[z+1], getcharid(2); goto L_buffbought; } if (buffon$=="angelus"){ set z, getarraysize($guildangelus); set $guildangelus[z+1], getcharid(2); goto L_buffbought; } if (buffon$=="gloria"){ set z, getarraysize($guildgloria); set $guildgloria[z+1], getcharid(2); goto L_buffbought; } if (buffon$=="impo"){ set z, getarraysize($guildimpositio); set $guildimpositio[z+1], getcharid(2); goto L_buffbought; } if (buffon$=="spirit"){ set z, getarraysize($guildspirit); set $guildspirit[z+1], getcharid(2); goto L_buffbought; } } case 2: mes "[Guild Buffs]"; mes "As you wish."; close; } L_buffbought: mes "[Guild Buffs]"; mes "Transaction complete, the buff is now available for your guild."; close; L_nobuffs: mes "[Guild Buffs]"; mes "I'm sorry, you don't have enough cash."; close; L_selectassumptio: if ($guildassumptio[y]==getcharid(2)) goto L_available; if (y>=getarraysize($guildassumptio)){ set y, 0; goto L_buffselect; } if (y<=getarraysize($guildassumptio)) set y,y+1; goto L_selectassumptio; end; L_selectimpositio: if ($guildimpositio[y]==getcharid(2)) goto L_available; if (y>=getarraysize($guildimpositio)){ set y, 0; goto L_buffselect; } if (y<=getarraysize($guildimpositio)) set y,y+1; goto L_selectimpositio; end; L_selectspirit: if ($guildspirit[y]==getcharid(2)) goto L_available; if (y>=getarraysize($guildspirit)){ set y, 0; goto L_buffselect; } if (y<=getarraysize($guildspirit)) set y,y+1; goto L_selectspirit; end; L_selectmagnificat: if ($guildmagnificat[y]==getcharid(2)) goto L_available; if (y>=getarraysize($guildmagnificat)){ set y, 0; goto L_buffselect; } if (y<=getarraysize($guildmagnificat)) set y,y+1; goto L_selectmagnificat; end; L_selectangelus: if ($guildangelus[y]==getcharid(2)) goto L_available; if (y>=getarraysize($guildangelus)){ set y, 0; goto L_buffselect; } if (y<=getarraysize($guildangelus)) set y,y+1; goto L_selectangelus; end; L_selectgloria: if ($guildgloria[y]==getcharid(2)) goto L_available; if (y>=getarraysize($guildgloria)){ set y, 0; goto L_buffselect; } if (y<=getarraysize($guildgloria)) set y,y+1; goto L_selectgloria; end; L_available: mes "[Guild Buffs]"; mes "You already bought " + buff$ + "."; if(getguildmasterid(getcharid(2))==getcharid(0)) { mes "Do you want to remove it?"; next; switch(select("No:Yes")){ case 1: close; break; case 2: mes "^FF0000Keep in mind that you won't get any refund!^000000"; mes "So, are you sure you want to take out that action?"; next; switch(select("No:Yes")) { case 1: close; case 2: if (buffon$=="assu"){ set $guildassumptio[y], 0; goto L_buffdeleted; } if (buffon$=="magni"){ set $guildmagnificat[y], 0; goto L_buffdeleted; } if (buffon$=="angelus"){ set $guildangelus[y], 0; goto L_buffdeleted; } if (buffon$=="gloria"){ set $guildgloria[y], 0; goto L_buffdeleted; } if (buffon$=="impo"){ set $guildimpositio[y], 0; goto L_buffdeleted; } if (buffon$=="spirit"){ set $guildspirit[y], 0; goto L_buffdeleted; } } } close; } L_buffdeleted: mes "[Guild Buffs]"; mes "Transaction completed. " + buff$ + " has been deleted from your Guildbuffs."; close; } how to fix that error thx ?
  2. if alootid doesn't support that but why sometime can auto loot into inventory??
  3. hi, all i have script for drop item to all monster - script alldrop -1,{ OnInit: // blacklisted monsters .blacklist$ = "1097"; end; OnNPCKillEvent: getmapxy( .@map$,.@x,.@y, 0 ); if( !compare( "|"+.blacklist$+"|","|"+killedrid+"|" ) ) makeitem 32041,5,.@map$,.@x,.@y; end; } when player use @alootd 32041, why sometime item not auto looting into iventory??it's bug or no??
  4. where is extra / and i use %20 like u said and i don't why i got that notice my client/data already writeable for owner
  5. Disable GRF auto-extract mode, don't have write access to "/home/nginx/domains/xxxx.com/public_html/themes/basicro-full/includes/ROChargenPHP/client/data/". Client init... Loading "DATA.INI" file... GRFs found in "DATA.INI": eris.grf, rdata.grf, data.grf, palette.grf Searching route "/character/Mori%20Jin/4/1". Running controller "Character". Connecting to DB.... Connection success. Trying to find file "data/sprite/shadow.spr"... File not found in data folder. Searching in GRFs... Loading GRF file "rdata.grf"... Search in GRF "rdata.grf", fail. Loading GRF file "data.grf"... Search in GRF "data.grf", found. Trying to find file "data/sprite/shadow.act"... File not found in data folder. Searching in GRFs... Search in GRF "rdata.grf", fail. Search in GRF "data.grf", found. Trying to find file "data/sprite/�ΰ���/����/��/�ʺ���_��.spr"... File not found in data folder. Searching in GRFs... Search in GRF "rdata.grf", fail. Search in GRF "data.grf", found. Trying to find file "data/sprite/�ΰ���/����/��/�ʺ���_��.act"... File not found in data folder. Searching in GRFs... Search in GRF "rdata.grf", fail. Search in GRF "data.grf", found. Trying to find file "data/sprite/�ΰ���/�Ӹ���/��/2_��.spr"... File not found in data folder. Searching in GRFs... Search in GRF "rdata.grf", fail. Search in GRF "data.grf", found. Trying to find file "data/sprite/�ΰ���/�Ӹ���/��/2_��.act"... File not found in data folder. Searching in GRFs... Search in GRF "rdata.grf", fail. Search in GRF "data.grf", found. Debug Mode ^ my Url ex : ROChargenPHP/index.php?/character/Mori%20Jin/4/1 but still show novice ?
  6. Hi, I have problem with rochargen if player have nickname with space ex: "tony stark" it always show novice sprite but if player nickname without space ex: "tony" no problem and have right sprite?
  7. how about to increase into 15 seconds? @Playtester
  8. @Alayne any news about this bro?
  9. i try this but not working and i try to solve by myself its working but i dont know is the right way or not haha function script F_PartyReCall { if(getpartyleader(getcharid(1),2) == getcharid(0)) { set .@leader, getcharid(3); getmapxy .@mapl$, .@xl, .@yl, 0; getpartymember getcharid(1),2; set .@partymembercount, $@partymembercount; copyarray .@partymemberaid[0], $@partymemberaid[0], .@partymembercount; for(set .@i, 0; .@i < .@partymembercount; set .@i, .@i + 1) { if(attachrid(.@partymemberaid[.@i])) { if(HP > 0 && getcharid(3) != .@leader) { warpparty "izlude_a", .@xl, .@yl,getcharid(1), strcharinfo(3), 3, 3; } } } } return; } thx u for your help ?
  10. @Capuche hi i found bug When one char in the party login with another char. and the char is not included in the party, remain teleport, but char is not in 1 party only 1 account how to fix it?
  11. how to make it array?? like "GM","FUCK","dll"
  12. HI, All i want to make npc where is list player (Display 10 nickname player per page) and how to be in list on npc When Player Use item ( Ex: "Event Verification") the char name will be list on that NPC it's posible? Purpose this npc ( to find out who the active player in game ) Somebody can help me with my idea thx before
  13. in my server when homunculus death get loss intamacy? Any config to disable that??
  14. do you have guide for this step?
  15. you must add web_commands.txt to your server and file location for web_commands.txt is Fluxcp/data/npc/
  16. can you tell me how to fix that?
  17. @Secrets can you help me about this??
  18. hi, @alayne i try your method but it's make all item can be trade into points This is my script On Sell OnSellItem: mes "Costume to sell:"; mes "-----------------------------------"; for(set .@i,0; .@i<getarraysize(@sold_nameid); set .@i,.@i+1) { set .@class1, compare(.class1$,","+@sold_nameid[.@i] + ","); set .@class2, compare(.class1$,","+@sold_nameid[.@i] + ","); set .@class3, compare(.class1$,","+@sold_nameid[.@i] + ","); set .@class4, compare(.class1$,","+@sold_nameid[.@i] + ","); mes ((.@class2 || .@class3 || .@class4)?" ^FF0000":" ^777777")+@sold_quantity[.@i]+"x "+getitemname(@sold_nameid[.@i])+"^000000"; .@class = -1; if(.@class2) { .@class=1; } else if(.@class3) { .@class=2; } else if(.@class4) { .@class=3; } else if(.@class1) { .@class=0; } if(.@class != -1) { set .@costume_total, .@costume_total+ ( @sold_quantity[.@i]* .Points[.@class] ); set .@costume_id[getarraysize(.@costume_id)], @sold_nameid[.@i]; set .@costume_amt[getarraysize(.@costume_amt)], @sold_quantity[.@i]; } } deletearray @sold_nameid[0], getarraysize(@sold_nameid); deletearray @sold_quantity[0], getarraysize(@sold_quantity); if (!.@costume_id) { mes "-----------------------------------"; mes " ^FF0000This item is not included in the category^000000"; emotion ET_SWEAT; close; } mes " "; mes "---------- Total: ^0055FF"+.@costume_total+" pt.^000000 -------"; next; if(select(" > ^0055FFComplete trade...^000000: > ^777777Cancel^000000") == 2) { mes "[Costume Trader]"; mes "Oh, okay..."; emotion ET_SCRATCH; close; } for(set .@i,0; .@i<getarraysize(.@costume_id); set .@i,.@i+1) delitem .@costume_id[.@i],.@costume_amt[.@i]; setd .Points$, getd(.Points$)+.@costume_total; mes "[Costume Trader]"; mes "All done!"; emotion ET_DELIGHT; close; And my list item: set .class1$, //Class 1 ",20054,19584,19634,19882,19605,31087,20341,20355,20354,20351,20352,20353,20356,20350,32109,32110,32111,32112,32113,32114,32115,32116,32117,32118,32119,32100,32101,32102,32103,32104,32105,32106,32107,32108,20241,20234,19506,20120,19521,19507,"; set .class2$, // Class 2 ",20405,20239,19606,20259,20193,20150,20279,20043,19992,19952,20030,20264,20459,20147,20215,31096,19746,19853,19158,20270,20298,19826,19973,20452,19971,20212,19557,20466,31092,19876,19974,19800,20232,19565,32120,"; set .class3$, // Class 3 ",20201,20034,20071,31055,20407,31093,20132,20416,20418,20419,20420,20421,20422,20423,20424,32121,19509,20318,20131,20399,20314,19934,18539,18600,19560,19991,19718,20402,20247,20199,20214,19745,20197,20068,20025,20232,19575,20117,20177,20177,19537,19587,5466,"; set .class4$, // Class 4 ",20509,20502,20746,20761,20798,20440,20448,20727,20500,20404,20255,20430,20221,20312,20499,19976,19824,19936,19780,19968,20398,20432,";
  19. the number must 1 2 3 4 5 6 7 see it' multiple number my mistake
  20. how to fix auto increment number on vending page
  21. yeah i know about that and fix it by myself but this script still only read frist array sorry last script work perfectly
×
×
  • Create New...