velgin Posted May 9, 2009 Author Share Posted May 9, 2009 im on edtotior pasting in script but when i try to save it just pops up says error 75 and says path/file access error exaclty whats wrong? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 9, 2009 Share Posted May 9, 2009 @velgin:> im on edtotior pasting in script but when i try to save it just pops up says error 75 and says path/file access error exaclty whats wrong?Okay, you're using the default editor that came with Eclipse?Your best bet, is to just to in the \Scripts\ folder, and open up the Main.txt with Notepad Link to comment Share on other sites More sharing options...
velgin Posted May 9, 2009 Author Share Posted May 9, 2009 what do i do after i open it. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 9, 2009 Share Posted May 9, 2009 @velgin:> what do i do after i open it.What, open the main.txt to edit the scripts?Once you open the file, that's the script file; so you can just edit the script directly, using notepad.So add the script you're trying to add, then when you're done, just go to "File -> Save". Link to comment Share on other sites More sharing options...
velgin Posted May 9, 2009 Author Share Posted May 9, 2009 i don't get what your trying to say and how do you make yourself look offline and when i put script in the main txt it does nothing? and also i went to editor and tryed pasting agian and it did not work :sad: Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 9, 2009 Share Posted May 9, 2009 @velgin:> i don't get what your trying to say and how do you make yourself look offline and when i put script in the main txt it does nothing? and also i went to editor and tryed pasting agian and it did not work :sad:I make myself appear offline in, I think it's "Account Settings" or something.Anyway, so we're clear: You're trying to add a script (which one?), right?After you put the script in your main.txt, and saved the main.txt, go to your Server Control Panel (it's one of the tabs in the Server), and make sure it says "Scripts: ON". After that, hit "Reload Scripts". Link to comment Share on other sites More sharing options...
velgin Posted May 9, 2009 Author Share Posted May 9, 2009 do i put it in the bottem of main script? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 9, 2009 Share Posted May 9, 2009 @velgin:> do i put it in the bottem of main script?I think you should look at this tutorial:http://www.touchofdeathforums.com/smf/index.php?topic=10036.0Also, which script are you trying to install? Link to comment Share on other sites More sharing options...
velgin Posted May 9, 2009 Author Share Posted May 9, 2009 this one If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="No" ThenCall PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","SpriteNumber",GetPlayerSprite(Index))Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting","Yes")Call SetPlayerSprite(Index, 109)Call PlayerMsg(Index,"You mounted", WHITE)Call LockAttack(Index, 1)Call LockSpells(Index, 1)Call SetSpeed(Index, "walk", 16)ElseCall PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No")Call SetPlayerSprite(Index, Getvar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount", "SpriteNumber"))Call LockAttack(Index, 0)Call LockSpells(Index, 0)Call SetSpeed(Index, "walk", 4)Call SendPlayerData(index)Call PlayerMsg(Index,"You dismounted", WHITE)End if Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 9, 2009 Share Posted May 9, 2009 Well, that's not in a sub, so it wouldn't go at the bottom of the main.txt; follow the instructions given with the script, they should say where to put it. Link to comment Share on other sites More sharing options...
velgin Posted May 9, 2009 Author Share Posted May 9, 2009 i meant this one  Case "/mount"If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="Yes" ThenCall PlayerMsg(Index,"You are already on your horse", 15)ElseCall PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","OriginalSpriteNumber",GetPlayerSprite(Index))Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting","Yes")Call SetPlayerSprite(Index, 10)call sendplayerdata(index)End ifExit subCase "/dismount"If GetVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting")="No" ThenCall PlayerMsg(Index,"You are already dismounted", 15)ElseCall PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No")Call SetPlayerSprite(Index, Getvar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount", "OriginalSpriteNumber"))Call sendplayerdata(index)End ifExit sub Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 9, 2009 Share Posted May 9, 2009 That would go in your Commands section of the Main.txt Link to comment Share on other sites More sharing options...
velgin Posted May 9, 2009 Author Share Posted May 9, 2009 i put it there and it does nothing it says vaild comand and i cant find where to put these on the main thingy? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 9, 2009 Share Posted May 9, 2009 @velgin:> i put it there and it does nothing it says vaild comand and i cant find where to put these on the main thingy?That tutorial I linked you, tells you not only where to put the script (for commands), but how to use the Cases for it too. Link to comment Share on other sites More sharing options...
velgin Posted May 10, 2009 Author Share Posted May 10, 2009 ty for all help Link to comment Share on other sites More sharing options...
velgin Posted May 10, 2009 Author Share Posted May 10, 2009 i still cant figure it out with ip address for the thing my sever shuts off and i dont get it ? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 10, 2009 Share Posted May 10, 2009 @velgin:> i still cant figure it out with ip address for the thing my sever shuts off and i dont get it ?Okay.The "IP", is the address of your computer.Every computer has a unique IP address, that's how the clients know which server to connect to.Now, you can find what your IP is, via www.ipchicken.comOf course, if you're trying to connect to the server with a client on the SAME machine, you'll use a speical number called localhost: 127.0.0.1 (but this, is just for your computer).Now, what exactly do you mean when you say it "shuts off"? 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