Dokie Posted April 7, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 12/21/12 Last Seen: June 5, 2013 Share Posted April 7, 2013 Can i request a script that when you just logged in you have to wait 5mins. after 5mins you can now use ( Trade , Deal , Vend )Also if he/she that players tries to use Deal or Vend A message will appear like dispbottom ( You have to wait 5 minutes before using that . ) Quote Link to comment Share on other sites More sharing options...
Capuche Posted April 7, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted April 7, 2013 I don't think it's possible by script... I think you need sources modifications. Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 7, 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 April 7, 2013 just create a new group id that disable trade vend deal... all players will be using that group id upon register... when they login...add a timer...example addtimer.. when the timer triggered...move then to other group id that can trade...or adjust the permission of their... 1 Quote Link to comment Share on other sites More sharing options...
Dokie Posted April 7, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 12/21/12 Last Seen: June 5, 2013 Author Share Posted April 7, 2013 just create a new group id that disable trade vend deal... all players will be using that group id upon register... when they login...add a timer...example addtimer.. when the timer triggered...move then to other group id that can trade...or adjust the permission of their... Can you give some example Emitry?. I'm newbie at scripting >.<. Quote Link to comment Share on other sites More sharing options...
jaBote Posted April 7, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 182 Reputation: 36 Joined: 01/26/12 Last Seen: October 6, 2021 Share Posted April 7, 2013 (edited) Well, first of all you need to make a new group on /conf/groups.conf just like the normal groups but with trade permission disabled so that the players that just login are moved to that group. I'll create for example group number 6 which inherits from group id 0 (Normal players) and is to be placed after group number 4. You should create any new groups maintaining the current structure of the file: { id: 5 name: "Trade disallowed" level: 0 inherit: ( "Player" ) commands: { /* no commands by default */ } permissions: { can_trade: false } }, Then you'll have to restart your server in order for it to recognise this new group. If you don't get any error on this you're good to go and load this NPC script which is the one which will actually grant or remove the permissions to/from the players: - script block_trade -1,{ OnPCLoginEvent: if (getgmlevel()) end; // Prevents any GM to be affected and denied to trade by early ending the script. Moreover, it prevents to make them normal users. atcommand "@adjgroup 5"; // Puts the can't trade permission to any GM level 0 user that logs in addtimer 300000,strnpcinfo(3)+"::OnEnableTrade"; // 300000 milliseconds = 300 seconds = 5 minutes dispbottom "You'll have trade permissions as soon as you stay 5 minutes online."; end; OnEnableTrade: atcommand "@adjgroup 0"; // Give them back the trade permission dispbottom "You now have trade permissions."; end; } And now you'll have this system active. I haven't tested it, but it should work without any error. Otherwise, tell us here! Edited April 7, 2013 by jaBote Quote Link to comment Share on other sites More sharing options...
Capuche Posted April 7, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted April 7, 2013 O_o I forgot this solution... Quote Link to comment Share on other sites More sharing options...
Dokie Posted April 8, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 12/21/12 Last Seen: June 5, 2013 Author Share Posted April 8, 2013 Well, first of all you need to make a new group on /conf/groups.conf just like the normal groups but with trade permission disabled so that the players that just login are moved to that group. I'll create for example group number 6 which inherits from group id 0 (Normal players) and is to be placed after group number 4. You should create any new groups maintaining the current structure of the file: { id: 5 name: "Trade disallowed" level: 0 inherit: ( "Player" ) commands: { /* no commands by default */ } permissions: { can_trade: false } }, Then you'll have to restart your server in order for it to recognise this new group. If you don't get any error on this you're good to go and load this NPC script which is the one which will actually grant or remove the permissions to/from the players: - script block_trade -1,{ OnPCLoginEvent: if (getgmlevel()) end; // Prevents any GM to be affected and denied to trade by early ending the script. Moreover, it prevents to make them normal users. atcommand "@adjgroup 5"; // Puts the can't trade permission to any GM level 0 user that logs in addtimer 300000,strnpcinfo(3)+"::OnEnableTrade"; // 300000 milliseconds = 300 seconds = 5 minutes dispbottom "You'll have trade permissions as soon as you stay 5 minutes online."; end; OnEnableTrade: atcommand "@adjgroup 0"; // Give them back the trade permission dispbottom "You now have trade permissions."; end; } And now you'll have this system active. I haven't tested it, but it should work without any error. Otherwise, tell us here! It's working fine on normal accounts though , but when i logged in my ( GM Account Level: 100 ) i have to wait 5 minutes too mostly i didn't get this part. ( Kinda newbie at scripting learning time to time. (: ) - script block_trade -1,{ OnPCLoginEvent: if (getgmlevel()) end; // Prevents any GM to be affected and denied to trade by early ending the script. Moreover, it prevents to make them normal users. Quote Link to comment Share on other sites More sharing options...
jaBote Posted April 8, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 182 Reputation: 36 Joined: 01/26/12 Last Seen: October 6, 2021 Share Posted April 8, 2013 I don't know what's happening right now, but try to have groups with GM level between 0 and 99. At least it was impossible to be GM level 100 before the new permission system was implemented. Quote Link to comment Share on other sites More sharing options...
Question
Dokie
Can i request a script that when you just logged in you have to wait 5mins. after 5mins you can now use ( Trade , Deal , Vend )
Also if he/she that players tries to use Deal or Vend A message will appear like dispbottom ( You have to wait 5 minutes before using that . )
Link to comment
Share on other sites
7 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.