Jump to content

Capuche

Developer
  • Posts

    2,407
  • Joined

  • Last visited

  • Days Won

    49

Posts posted by Capuche

  1. 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 !

  2. 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    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.

  3. -	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;
    }

    • Upvote 2
  4. 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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.