cadz Posted February 21, 2013 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Share Posted February 21, 2013 master if your online i would like to request your script to even @afk no tcg per hour thanks master a lot. =) - script Sample -1,{OnUpdate:if( !checkvending() ){ set @Minute,@Minute + 1; if( @Minute % 60 == 0 ){ getitem 7227,10; dispbottom "Online for 1 Hours +10 TCG Card."; set @Hour,@Hour + 1; if( @Hour % 5 == 0 ){ getitem 7227,200; dispbottom "Online for 5 Hours +200 TCG Card."; } }}OnPCLoginEvent:addtimer 60000,strnpcinfo(0)+"::OnUpdate";end;} btw im using eathena. =) Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 21, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted February 21, 2013 the current emulator has no way to detect the player using @afk or not... unless your @afk are using chatroom then we can use checkchatting to check it.. or...your @afk will set a variable...or player mode...then have a command to check on it ... or you can use @afk will stop the timer...using deltimer otherwise...there is no way to check a player using @afk or not... Quote Link to comment Share on other sites More sharing options...
cadz Posted February 21, 2013 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Author Share Posted February 21, 2013 okay master so i just remove the @afk to players then. thanks a lot for the time master. Quote Link to comment Share on other sites More sharing options...
cadz Posted February 23, 2013 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Author Share Posted February 23, 2013 the current emulator has no way to detect the player using @afk or not... unless your @afk are using chatroom then we can use checkchatting to check it.. or...your @afk will set a variable...or player mode...then have a command to check on it ... or you can use @afk will stop the timer...using deltimer otherwise...there is no way to check a player using @afk or not... master i have a hint about @afk... @afk script get from @autrade it just remove some part of the script from vending i saw the @afk in map server like this Fofo log off using <@autotrade>. can still be possible? i think its same like autotrade if( !checkvending() ){ change to if( at_commands @autotrade () ){ like this? Quote Link to comment Share on other sites More sharing options...
Question
cadz
master if your online i would like to request your script to even @afk no tcg per hour thanks master a lot. =)
- script Sample -1,{
OnUpdate:
if( !checkvending() ){
set @Minute,@Minute + 1;
if( @Minute % 60 == 0 ){
getitem 7227,10;
dispbottom "Online for 1 Hours +10 TCG Card.";
set @Hour,@Hour + 1;
if( @Hour % 5 == 0 ){
getitem 7227,200;
dispbottom "Online for 5 Hours +200 TCG Card.";
}
}
}
OnPCLoginEvent:
addtimer 60000,strnpcinfo(0)+"::OnUpdate";
end;
}
btw im using eathena. =)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.