Jump to content
  • 0

Can Someone Edit this Script for Me? <3


Question

Posted

Can someone please Edit this, coz when i tried in Pub you can still got 1 Cash points i want to remove that...

 

- script Hourly Points -1,{
OnUpdate:
if( !checkvending() ){
set @Minute,@Minute + 1;
if( @Minute % 60 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 1;
dispbottom "Online for 1 Hour You Gained 1 Cash Points.";
set @Hour,@Hour + 1;
if( @Hour % 12 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 10;
dispbottom "Online for 12 Hours +10 Cash Points.";
}
}
}
OnPCLoginEvent:
addtimer 60000,strnpcinfo(0)+"::OnUpdate";
end;
}

3 answers to this question

Recommended Posts

Posted (edited)

So you wanted to remove the 1 Cash Point per Hour?

 

Didnt test it, but should work.

 

- script Hourly Points -1,{
OnUpdate:
if( !checkvending() ){
set @Minute,@Minute + 1;
if( @Minute % 720 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 10;
dispbottom "Online for 12 Hours +10 Cash Points.";
}
}
OnPCLoginEvent:
addtimer 60000,strnpcinfo(0)+"::OnUpdate";
end;
}
Edited by Reynard
Posted


- script hourlypoints -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 hourly 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 hourly 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

if(@minute == 60){

set @minute,0;

getitem 7227,1;

set #CASHPOINTS, #CASHPOINTS + 10;

dispbottom "Online for 12 Hours +10 Cash Points."

}

stopnpctimer;

initnpctimer;

end;

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...