velgin Posted January 9, 2010 Author Share Posted January 9, 2010 im trying to figure out how to get and ideam to give you xp but i have no idea how can someone help me? Link to comment Share on other sites More sharing options...
velgin Posted January 9, 2010 Author Share Posted January 9, 2010 plz someone help Link to comment Share on other sites More sharing options...
cloudwolf00 Posted January 9, 2010 Share Posted January 9, 2010 Hello@velgin:> im trying to figure out how to get and ideam to give you xp but i have no idea how can someone help me?If by your previous post, you mean a script item that when used, gives you exp then use this script that I made:``` 'REPLACE THE X WITH A CASE NUMBER Case X 'The exp to give Dim exp exp = 25 'If we can take the item If CanTake(Index, ItemNeeded, ItemAmount) = True Then 'Take the item - replace the ItemNeeded and ItemAmount with the item that you an to take and the number to take Call TakeItem(Index, ItemNeeded, ItemAmount) 'Set the player exp Call SetPlayerExp(Index, GetPlayerExp(Index) + exp) Call PlayerMsg(index, "You gain " & exp & "!", WHITE) Else Call PlayerMsg(index, "You don't have that item", WHITE) End If Exit Sub```Now install: http://www.touchofdeathforums.com/smf/index.php?topic=28174.0Let me know if this works or if you have any questionsYours sincerelycloudwolf00 Link to comment Share on other sites More sharing options...
velgin Posted January 9, 2010 Author Share Posted January 9, 2010 still dont get it? Link to comment Share on other sites More sharing options...
MasterBit13 Posted January 9, 2010 Share Posted January 9, 2010 @velgin:> still dont get it?This goes under Sub ScriptedItem in your Main.txt:``` 'REPLACE THE X WITH A CASE NUMBER Case X 'The exp to give Dim exp exp = 25 'If we can take the item If CanTake(Index, ItemNeeded, ItemAmount) = True Then 'Take the item - replace the ItemNeeded and ItemAmount with the item that you an to take and the number to take Call TakeItem(Index, ItemNeeded, ItemAmount) 'Set the player exp Call SetPlayerExp(Index, GetPlayerExp(Index) + exp) Call PlayerMsg(index, "You gain " & exp & "!", WHITE) Else Call PlayerMsg(index, "You don't have that item", WHITE) End If Exit Sub```Select te correct case number.Example:If you have 2 items made, you last was Case 1, this would be case 2.The go to: http://www.touchofdeathforums.com/smf/index.php/topic,28174.0.htmland follow the instructions on that script, or once teh item is used, it will be used again, again, etc…Making the item:Goto your client after installing the scripts. ress F1 and edt items. Select teh correct item and choose scripted > Case X.Follow it liek that, it should work. Link to comment Share on other sites More sharing options...
velgin Posted January 9, 2010 Author Share Posted January 9, 2010 cant fin sub scripted ideam? Link to comment Share on other sites More sharing options...
MasterBit13 Posted January 9, 2010 Share Posted January 9, 2010 @velgin:> cant fin sub scripted ideam?Server -> Scripts -> Main.txt -> F3 > Type: Sub ScriptedItem Link to comment Share on other sites More sharing options...
velgin Posted January 9, 2010 Author Share Posted January 9, 2010 tryed not there Link to comment Share on other sites More sharing options...
Admiral Refuge Posted January 9, 2010 Share Posted January 9, 2010 @velgin:> tryed not thereServer -> Scripts -> Events -> ScriptedItem.essIf you are using Eclipse Stable 1.3 Link to comment Share on other sites More sharing options...
devilbleep Posted January 9, 2010 Share Posted January 9, 2010 Hehe, ideam. :) Link to comment Share on other sites More sharing options...
MasterBit13 Posted January 9, 2010 Share Posted January 9, 2010 @Admiral:> @velgin:> > > tryed not there> > Server -> Scripts -> Events -> ScriptedItem.ess> If you are using Eclipse Stable 1.3Thunder Thief! XD Lol 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