Jump to content
  • 0

Can Someone Edit this Script for Me? <3


Yoona

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   9
  • Joined:  09/22/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


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

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

@Reynard i will test this script of yours <3

 

 

@Anakid Thank You soo much i will test this one too <3

Edited by Yoona
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...