Jump to content
  • 0

Solved...


Yasunari Ishibashi

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

Solved

Edited by Yasunari Ishibashi
[codebox]
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

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( .@map$, .@x, .@y, 0 );
   if(@map$ == .@map$ && @x == .@x && @y == .@y) {
   set @afk, @afk + 1;
   }
   //If move timer resets
   else {
   set @afk, 0;
   }
   set @map$, .@map$; set @x, .@x; set @y, .@y;
   //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 .@point_amt, 10;
           getitem 675,.@point_amt;
           dispbottom "You received "+.@point_amt+" Silver Coin by staying ingame for 1 minute";

       }
       else{
           //  Received only 1 Silver Coin when 25234 is not Equip.
           set .@point_amt, 1;
           getitem 675,.@point_amt;
           dispbottom "You received "+.@point_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 .@point_amt, 100;
           getitem 675,.@point_amt;
       }
       else{
           //set .@point_amt, 50;
           //getitem 675,.@point_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    .@Rand$[0], "0x51FF00", "0x0D00FF", "0x00FFD5", "0xDD00F", "0xFF8C00", "0xD5FF00", "0xFF00F7", "0xFFFFFF", "0x000000"; input @Megaphone$; announce strcharinfo (0) + ":" + @Megaphone$, bc_all, .@Rand$[rand(9)]; end; },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

what do you mean you need broadcaster?

and you need to play silver coin i have a script w8

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

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