Shanjai Posted September 14, 2010 Author Share Posted September 14, 2010 Hello, i was wondering if there was a command(server) that gives exp to Only one player instead of giving exp to everyone else in the server(i use the "Mass Experience" button in the Control panel)Oh, sorry if my english sucks.I'll be waiting for help ;) Link to comment Share on other sites More sharing options...
kilonox Posted September 15, 2010 Share Posted September 15, 2010 Well that all depends on your Engine. Or you can make a room and have a single mob with max EXP but min other statsx Kilonox Link to comment Share on other sites More sharing options...
Helpmeplz Posted September 15, 2010 Share Posted September 15, 2010 I'm not sure but this might require a script. Unless theres another way of doing it. Link to comment Share on other sites More sharing options...
Shanjai Posted September 15, 2010 Author Share Posted September 15, 2010 @Black★Gold:> I'm not sure but this might require a script.Maybe… i suck too much at scripting, i think i gotta learn a bit of that so that i can do a command for it.Because i was thinking of doing an event that if you give a special item to a GM, this GM gives you a little of EXP Link to comment Share on other sites More sharing options...
Guest Posted September 15, 2010 Share Posted September 15, 2010 what engine are you using? you can also do a scripted item like a potion or something that gives the player EXP. Its actually quite simple.EDIT: This is a level up Potion script.You can change the +1 and +5 to whatever you want. Obviously when you level up once you get 5 stat points. So try to keep it in ratio (2 levels > 10 stat points, etc.)*********Level Up Potion************** Case 0 Call SetPlayerLevel(index, GetPlayerLevel(index) + 1) Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 5)End SelectEnd SubIf you are using stable, which if you really can't script that well you should be, go into your server folder, then I believe your scripts folder, then your events folder. You will see a notepad document named "ScriptedItem" Open it up and paste this code under whatever is already there. I think there is already a Case 0\. So rename this Case 1\. Then what you do is save, and restart your server. (Close it and then reload it back up). Make sure your scripts are on, which they should be by default. (You turn them on and off from a button on your server window)Finally, when you are in the game, create a new item. Pick the picture for it and whatever. Then on the drop down list select scripted. A side scrolling bar for the cases should pop up. Slide it to case 1\. Then you my friend have a "whatever you want" that levels you up. Link to comment Share on other sites More sharing options...
Shanjai Posted September 15, 2010 Author Share Posted September 15, 2010 @skevsama:> what engine are you using?Well, I'm using EE 2.8 Link to comment Share on other sites More sharing options...
Guest Posted September 16, 2010 Share Posted September 16, 2010 that code should still work. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted September 16, 2010 Share Posted September 16, 2010 No it won't, a minor fix.Add before Case Else.``` Case 0 Call SetPlayerLevel(index, GetPlayerLevel(index) + 1) Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 5)``` Link to comment Share on other sites More sharing options...
Shanjai Posted September 16, 2010 Author Share Posted September 16, 2010 @Soul:> No it won't, a minor fix.> > Add before Case Else.> > ```> > Case 0> Call SetPlayerLevel(index, GetPlayerLevel(index) + 1)> Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 5)> > ```It worked, but the item won't delete(this means that players will be able to lvl up lots of times with the same item) Link to comment Share on other sites More sharing options...
Guest Posted September 16, 2010 Share Posted September 16, 2010 then you will need to go to the script data base and find one that actually takes away the item. I just copied the first one I found. But I mean, you could hang on to that incase you actually wanted someone to have an item where they could constantly keep leveling up.EDIT: Ok I'm helping you because I don't want you to be lost. I know that it can sometimes be kind of hard to get help around here haha. OK SO HERE'S A NEW APPROACH!*******Level Up Spell*********Sub ScriptedSpell(index, Script) Select Case Script Case 0 Dim mpneeded 'Declare the MP variable mpneeded = 0 'The amount of MP needed If GetPlayerMP(index) >= mpneeded Then 'Check if the player has the required amount of MP Call SetPlayerLevel(index, GetPlayerLevel(Index) +1) 'Increase the player's level by one Call SetPlayerMP( Index, GetPlayerMP( Index) - mpneeded) 'Substract the MP thats needed Call SendStats( Index) 'Updates the player's stats End If End SelectEnd SubTHIS SPELL COULD BE AN ADMIN ONLY SPELL THAT YOU COULD MAKE YOURSELF LEARN. IN GAME YOU COULD CAST IT ON OTHERS TO LEVEL THEM UP. IM PRETTY SURE THIS HAS THE SAME EFFECTS AS THE POTION DID, HOWEVER IT IS A SPELL SO IT OBVIOUSLY WOULD NOT BE MISUSED. Link to comment Share on other sites More sharing options...
Shanjai Posted September 16, 2010 Author Share Posted September 16, 2010 Hehe, i'm going to try it, thank you :azn: Link to comment Share on other sites More sharing options...
Shanjai Posted September 16, 2010 Author Share Posted September 16, 2010 Umm… sorry if i'm disturbing or something, but it isn't working.I mean, i memorize the spell and i get next to a player(by now only my brother play, by LAN) and i press INSERT but nothing happens, perhaps this way of doing it is wrong? Link to comment Share on other sites More sharing options...
Shanjai Posted September 16, 2010 Author Share Posted September 16, 2010 @Shanjai:> @Soul:> > > No it won't, a minor fix.> > > > Add before Case Else.> > > > ```> > > > Case 0> > Call SetPlayerLevel(index, GetPlayerLevel(index) + 1)> > Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 5)> > > > ```> > It worked, but the item won't delete(this means that players will be able to lvl up lots of times with the same item)Oh, i solved this one :cheesy: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now