-
Posts
2,407 -
Joined
-
Last visited
-
Days Won
49
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Capuche
-
-
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 !
-
not tested yet let me know if there's error
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 loadeventWhen 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.
-
Well! this script have in OnInit:
hideonnpc "Dice#evnt1";then when a player win:
disablenpc "Dice#evnt1";After that, this NPC is disabled !
-
- 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([email protected]_parameters$[0]) < 1 ) message strcharinfo(0),"Please don't play games. I need a real amount to withdraw."; else if( atoi([email protected]_parameters$[0]) > #bankstorage ) message strcharinfo(0),"I show you only have ^00FF00" + #bankstorage +"^000000 zeny in your account!"; else { set Zeny,Zeny + atoi([email protected]_parameters$[0]); set #bankstorage,#bankstorage - atoi([email protected]_parameters$[0]); message strcharinfo(0),"There's your Zeny. Have a good day."; message strcharinfo(0), "############## Withdrawl: " [email protected]_parameters$[0]+ " Zeny ##############"; message strcharinfo(0), "####### You have now " +#bankstorage+ " Zeny in Bank #######"; } end; Ondeposit: if( atoi([email protected]_parameters$[0]) < 1 ) message strcharinfo(0),"Make sure you ask me to deposit a real amount."; else if( atoi([email protected]_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([email protected]_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([email protected]_parameters$[0]); set #bankstorage,#bankstorage + atoi([email protected]_parameters$[0]); message strcharinfo(0),"Thank you very much... Your zeny is in good hands."; message strcharinfo(0), "############## Deposit: " [email protected]_parameters$[0]+ " Zeny ##############"; message strcharinfo(0), "####### You have now " +#bankstorage+ " Zeny in Bank #######"; } end; }-
2
-
-
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;
PvP System + ChashP
in Scripting Support
Posted · Edited by capuche
For example, using getd you can make a variable @delay(char_id player killed).
Like this:
getd("@Delay"[email protected]) ... setd ("@Delay"[email protected]) }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.