Jump to content

Question

4 answers to this question

Recommended Posts

Try this one..

when using a Custom Headger (ItemID 25234 ) get 10 Siver Coin in 1 minute & 100 Silver Coin in 1 hour,

when not to use custom headger only get a silver coin every minute.

-    script    minutepoints    -1,{
//--Start of the Script
OnPCLoginEvent:
   attachnpctimer ""+strcharinfo(0)+"";
   initnpctimer;
   end;

OnTimer30000:
   //Check if Vending (normal or @at)
   if(checkvending() >= 1 || checkchatting() == 1) {
   dispbottom "The minute points event stopped because you were vending / chatting. Please relog if you wish to start again.";
   stopnpctimer;
   end;
   }
   //Check if Idle
   getmapxy( [email protected]$, [email protected], [email protected], 0 );
   if(@map$ == [email protected]$ && @x == [email protected] && @y == [email protected]) {
   set @afk, @afk + 1;
   }
   //If move timer resets
   else {
   set @afk, 0;
   }
   set @map$, [email protected]$; set @x, [email protected]; set @y, [email protected];
   //Idle Check for 5 Minutes
   if(@afk == 5) {
   dispbottom "The minute points event stopped because you were idle for 5 minutes. Please relog if you wish to start again.";
   stopnpctimer;
   end;
   }
   end;

OnTimer60000:
   set @minute, @minute + 1;
   //Check for 1 Minute
   dispbottom "Total Minute's Played: " + @minute;
   if( @minute == 1 ) // 10 Minutes
   {
       if(getequipid(EQI_HEAD_TOP)==25234)
       {
           // Received 10 Silver  COin
           set [email protected]_amt, 10;
           getitem 675,[email protected]_amt;
           dispbottom "You received "[email protected]_amt+" Silver Coin by staying ingame for 1 minute";

       }
       else{
           //  Received only 1 Silver Coin when 25234 is not Equip.
           set [email protected]_amt, 1;
           getitem 675,[email protected]_amt;
           dispbottom "You received "[email protected]_amt+" Silver Coin by staying ingame for 1 minute";
       }
   }

   if( @minute == 60 ) {
       // 1 Hour
       set @minute,0;
       set @consecutive_hour, @consecutive_hour + 1;

       if(getequipid(EQI_HEAD_TOP)==25234)
       {
           set [email protected]_amt, 100;
           getitem 675,[email protected]_amt;
       }
       else{
           //set [email protected]_amt, 50;
           //getitem 675,[email protected]_amt;
       }

   }

   // Check for 1 hours consecutive
   // Received More Rewards
   if(@consecutive_hour == 2)
   {
       // Set Rewards Here..
       set @consecutive_hour, 0;

   }

stopnpctimer;
initnpctimer;
end;

}

Make a Random Color.

12221,Megaphone_,Megaphone,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ setarray    [email protected]$[0], "0x51FF00", "0x0D00FF", "0x00FFD5", "0xDD00F", "0xFF8C00", "0xD5FF00", "0xFF00F7", "0xFFFFFF", "0x000000"; input @Megaphone$; announce strcharinfo (0) + ":" + @Megaphone$, bc_all, [email protected]$[rand(9)]; end; },{},{}

Link to comment
Share on other sites

random chat color so no one color broadcaster.

And for special zeny hourly script that uses custom headger (ItemID 25234) to get 10 silver coin every minute, and when not to use custom headger only get a silver coin every minute, if you can help change the script I mentioned above?

Edited by Yasunari Ishibashi
Link to comment
Share on other sites

what if using more than one instance headger :

if(getequipid(EQI_HEAD_MID)==25234,25345,23435,23452)

is it true as above?

if the script is working 24 hours? when the player online for 24 hours? or having to relog every few hours?

Thank you for helping me.

Edited by Yasunari Ishibashi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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