Jump to content

Pride

Members
  • Posts

    41
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. Pride's post in Help on this script about coin exchanger was marked as the answer   
    prontera,190,161,4 script Coin to Zeny 109,{ // 50 Bronze Coin = How Many Zeny ? set .Rates,1000000; mes "Select what you want"; switch( select("Coin to Zeny:Zeny to Coin") ){ Case 1: if( countitem(673) < 50 ){ mes "You didnt have enough Bronze coin"; close; }else{ mes "You have "+countitem(673)+" Coins."; mes "How many Coin will be convert to zeny ?"; mes "You can enter 0 to cancel this deal"; input .@Amount,50,countitem(673); if( !.@Amount || (( .Rates * .@Amount ) + Zeny ) > 1800000000 ){ mes "Deal Cancelled. your zeny is full ."; close; }else{ delitem 673,.@Amount; mes "Converted "+.@Amount+" of Coin into Zeny."; mes "Gained Total of "+( .Rates * .@Amount )+" of Zeny."; set Zeny,Zeny + ( .Rates * .@Amount ); } } next; break; Case 2: if( Zeny < .Rates ){ mes "You don't have enough Zeny."; close; }else{ mes "You have "+Zeny+" Zeny."; mes "How many Coin do you want ?"; mes "You can get maximum of "+( Zeny / .Rates )+" Bronze Coin."; mes "You can enter 0 to cancel this deal"; input .@Amount,1,( Zeny / .Rates ); if( !.@Amount ){ mes "Deal Cancelled."; close; }else{ set Zeny,Zeny - ( .@Amount * .Rates ); mes "Converted "+( .@Amount * .Rates )+" Zeny into "+.@Amount+" Coin."; getitem 673,.@Amount; } } next; break; } close; end; } Please use code box next time. This code is not tested so tell me if you have any errors
  2. Pride's post in H>Plagirism NPC was marked as the answer   
    ofc it wont refresh because thats not how you copy skills to the character. If your emulator is old then maybe try to update your emulator. try refer other posts on Stalker Skill copy there is this source code that allows u to copy skill directly as you wanted. im gonna drop the link here.
    also on [Error]: pc_checkskill: Invalid skill id 0

    try refer Github 
     Some sage skill provoke a error : pc_checkskill: Invalid skill id 0 · Issue #1154 · rathena/rathena · GitHub
     
  3. Pride's post in OnPCLoadMapEvent cannot be used in 2 different scripts was marked as the answer   
    just mention the maps u want this script to work
    - script remove_assumptio -1,{ OnPCLoadMapEvent: if(strcharinfo(3)=="aldeg_cas01" || strcharinfo(3)=="aldeg_cas02" strcharinfo(3)=="aldeg_cas03") { sc_end SC_MINDBREAKER; sc_end SC_ASSUMPTIO; sc_end SC_SPIRIT; end; } }
  4. Pride's post in Custom hp bar was marked as the answer   
    payon,147,229,4 script Test#HPbar 1_F_MARIA,{ if (.@HP_Bar == 0) { .@HP_Bar = 1; monster ("payon",148,226,"[T] HP Test",1031,1,strnpcinfo(0)+"::OnMobDie"); .mid =$@mobid; getunitdata .mid, .@unitdata; setunitdata .mid,UMOB_MAXHP,4000; setunitdata .mid,UMOB_HP,4000; .@count = getmapunits(BL_PC, "payon", .@units); for (.@i = 0; .@i < .@count; .@i++) { attachrid .@units[.@i]; addtimer(0,strnpcinfo(0)+"::OnHPBar"); } } end; OnMobDie: .@HP_Bar = 0; end; OnHPBar: .getunitdata .mid,.@unitdata; .@U_MAXHP = .@unitdata[UMOB_MAXHP]; while (.@HP_Bar != 0) { .@U_HP = .@unitdata[UMOB_HP]; .@P_HP = (.@U_HP*100)/.@U_MAXHP; cutin(.@P_HP+"", 1); sleep2 100; } cutin("0", 1); sleep2 5000; //Delay to hide HP Bar cutin("", 255); end; }  
×
×
  • Create New...