Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by Capuche

  1. btw i'm pretty sure item ID xxxx doesn't exist XD if(countitem(xxxx) == 0) { close2; attachrid getcharid(3,.@Disguise$); else if(.@Type$ != "base") { set DisguiseJob,roclass(getd(.@Class$)|getd(.@Branch$)|getd(.@Type$)); } else { set DisguiseJob,roclass(getd(.@Class$)|getd(.@Branch$)); } Where is the first if ?
  2. It works for me. Do you have the mapflag loadevent ? http://rathena.org/wiki/OnPCLoadMapEvent prontera mapflag loadevent If it doesn't work, just add if( strcharinfo(3) != "prontera" ) end; after OnPCLoadMapEvent: (like this)
  3. In your script, replace disablenpc "Dice#evnt1"; by hideonnpc "Dice#evnt1";
  4. That coz you have #cashpoints and #CASHPOINTS variables in global reg value. In your script, change #cashpoints by #CASHPOINTS (#CASHPOINTS is used when using @cash command) In global reg value delete #cashpoints
  5. Like said Emistry, change the setting of enable_logs in YOUR file log_athena.conf ! // Example: Log trades+vending+script items+created items: 1+2+32+1024 = 1059 // Please note that moving items from inventory to cart and back is not logged by design. enable_logs: 0xFFFFF For example, if you just want trade log between player in your picklog file, enable_logs: 1 Edit: and you need to restart your server !
  6. For example, using getd you can make a variable @delay(char_id player killed). Like this: getd("@Delay"+.@id) ... setd ("@Delay"+.@id) } But be aware if the killer log out/log in, @delay is reset ! Edit: oups my bad! this is script support... i remove my script.
  7. Well using bindatcmd, i propose something like this ! - script atcmd_doommap -1,{ OnInit: bindatcmd("doommap","atcmd_doommap::Ondoommap"); end; Ondoommap: if( getgmlevel() > 99 ) atcommand "@doommap"; else if( getgmlevel() > 60 && strcharinfo(3) != "prontera" ) atcommand "@doommap"; end; } Doommap works for GM 99 but doesn't work for GM > 60 in prontera !
  8. There's an error ! XD In your script Mootie, player is not attached ! I propose: prontera,150,180,4 script Healer -1,{ OnPCLoadMapEvent: percentheal 100,100; sc_start SC_BLESSING,360000,10; sc_start SC_INCREASEAGI,360000,10; specialeffect 76; specialeffect 83; end; } prontera mapflag loadevent When a player warp on Prontera, heal+agi+bless or this one: prontera,150,180,4 script Healertfgfdssd 456,20,20,{ percentheal 100,100; sc_start SC_BLESSING,360000,10; sc_start SC_INCREASEAGI,360000,10; specialeffect 76; specialeffect 83; end; } Work when a player is near of the NPC.
  9. Well! this script have in OnInit: then when a player win: After that, this NPC is disabled !
  10. - script atcmd_bank -1,{ OnInit: bindatcmd("bn","atcmd_bank::Onbn"); bindatcmd("withdrawlbn","atcmd_bank::Ontradebn"); bindatcmd("depositbn","atcmd_bank::Ondeposit"); end; Onbn: message strcharinfo(0),"You currently have " + #bankstorage + " Zeny in your account."; end; Ontradebn: if( atoi(.@atcmd_parameters$[0]) < 1 ) message strcharinfo(0),"Please don't play games. I need a real amount to withdraw."; else if( atoi(.@atcmd_parameters$[0]) > #bankstorage ) message strcharinfo(0),"I show you only have ^00FF00" + #bankstorage +"^000000 zeny in your account!"; else { set Zeny,Zeny + atoi(.@atcmd_parameters$[0]); set #bankstorage,#bankstorage - atoi(.@atcmd_parameters$[0]); message strcharinfo(0),"There's your Zeny. Have a good day."; message strcharinfo(0), "############## Withdrawl: " +.@atcmd_parameters$[0]+ " Zeny ##############"; message strcharinfo(0), "####### You have now " +#bankstorage+ " Zeny in Bank #######"; } end; Ondeposit: if( atoi(.@atcmd_parameters$[0]) < 1 ) message strcharinfo(0),"Make sure you ask me to deposit a real amount."; else if( atoi(.@atcmd_parameters$[0]) > Zeny ) message strcharinfo(0),"It does not appear like you have the amount of zeny you're trying to deposit!"; else if( atoi(.@atcmd_parameters$[0]) + #bankstorage > 2000000000 ) { message strcharinfo(0),"Sorry, Bank Storage is full."; message strcharinfo(0), "####### You have " +#bankstorage+ " Zeny in Bank #######"; } else { set Zeny,Zeny - atoi(.@atcmd_parameters$[0]); set #bankstorage,#bankstorage + atoi(.@atcmd_parameters$[0]); message strcharinfo(0),"Thank you very much... Your zeny is in good hands."; message strcharinfo(0), "############## Deposit: " +.@atcmd_parameters$[0]+ " Zeny ##############"; message strcharinfo(0), "####### You have now " +#bankstorage+ " Zeny in Bank #######"; } end; }
  11. Something like... this? EndEvent: announce "End of Event!",0; end; but .Map$ is empty on the first used. OnTimer3300000: RestartEvent: killmonster .Map$,"All"; set .Event,0; set .SpecialPorings[1],0; set .NormalPorings[1],0; removemapflag .Map$,mf_noskill;
×
×
  • Create New...