Jump to content

Yasunari Ishibashi

Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by Yasunari Ishibashi

  1. parse_line: expect command, missing function name or calling undeclared function 28 : { * 29 : '.'@i = rand(100); 30 : please justify the script and adding the amount of the item obtained with annoucher,thanks function script sample { set .@rand, rand( 20+50+60 ); if ( .@rand < 20 ) { getitem "goldcoin", 2; announce strcharinfo(0) +" has earn gold coin x2", bc_all; } else if ( .@rand < 20+50 ) getitem "poringcoin", 5; announce strcharinfo(0) +" has earn poring coin x5", bc_all; } else if ( .@rand < 20+50+60 ) set zeny, zeny + 50000000; announce strcharinfo(0) +" has earn zeny 50.000.000", bc_all; } } please justify the script
  2. set .@rand, rand( 20+50+60 ); if ( .@rand < 20 ) getitem "goldcoin", 2; else if ( .@rand < 20+50 ) getitem "poringcoin", 5; else if ( .@rand < 20+50+60 ) set zeny, zeny + 50000000; I think you should see the trick sort the conditions from lowest chance to higher chance thanks
  3. how to add annoucher when getting items from the box?
  4. // The Emperium has been broken. OnAgitBreak: getitem 7227,1; set .@GID,getcharid(2); // Show and log error if an unguilded player breaks the Emperium. (Should NEVER happen) if (.@GID <= 0) { set .@notice$,"Character "+strcharinfo(0)+" ("+getcharid(0)+") broke the Emperium in Castle: "+strnpcinfo(2)+" while guildless. No data will be saved and Emperium respawned."; logmes .@notice$; debugmes .@notice$; donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; end; } OnStartArena: getitem 7227,1; // OnAgitStart will fall through and spawn the Emperium. if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; } else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; } else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; } else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; } else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; } else if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; } else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; } else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; } else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; } else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; } else if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; } else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; } else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],268,264; } else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; } else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; } else if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; } else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; } else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; } else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; } else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; } like this?
  5. - script Sample -1,{ OnNPCKillEvent: getmapxy(.@map$,.@x,.@y,0); if(.@map$=="aldeg_cas01" && killedrid == 1288 && (gettime(4) == 3) && gettime(3) == 19 ) { getitem 7227,1; end; } } please fix the script above
  6. what if adding zeny 50 million 60% poringcoin x 5 50% goldcoin x 2 20% please help
  7. whether it can make a sample script? similar function as an additional type obb, annoucher if it get the items from the box sorry bad english
  8. how to add annoucher items obtained from the box?
  9. how to add annoucher items obtained from the box?
  10. how to add a script to the group annoucher random item? eg I opened the box and I get automatic Jellopy annoucher that namaplayer get Jellopy. whether it can be made like that? please help make the script thanks.
  11. example script : function script CustomBoxUpper { setarray .BoxItems[0],25194,25195,25197,25199,25202,25203,25205; set .Random, rand( getarraysize( .BoxItems ) ); getitem .BoxItems[ .Random ], 1; announce "["+strcharinfo(0)+"] baru saja memperoleh ["+getitemname(.BoxItems[ .Random ])+"] dari Custom Box.",0; end; } Please help me edit the script, I want to add percent chance each get an item. eg: 25194 -> 40% 25195 -> 25% 25196 -> 10% 25199 -> 1% if anyone can help edit my scripts? sorry my bad english
  12. why every time I buy items with cashpoint / kafrapoint goods can not be after that I could not move at all like the freeze. this script: prontera,151,142,4 cashshop Cash Shop 116,501:10,502:10 I use the latest version rathena. please help, thank you. (sorry my bad english)
  13. sorry troublesome,apparently I have not chance map rwc 03 problem solved
  14. I have the same problem, please help
  15. because I use RagEXE 2011-06-22, please prompts to correct the error.
  16. why get an error as shown below when I've compile lua to lub. The error appears on, if anyone can help? this contents npclocationradius_f : --Function #0 GetNpcLocationRadius = function(jobID) if NpcLocationRadius[jobID] ~= nil then return NpcLocationRadius[jobID] end return 0 end
×
×
  • Create New...