bboy44 Posted June 18, 2009 Author Share Posted June 18, 2009 I got this mount script: http://www.touchofdeathforums.com/smf/index.php/topic,39617.0.htmlWhen I put it inside of a case then make an item with that case it only mods my speed. It doesnt change my sprite, any help?Here is what it looks like:> Case 1> If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="No" Then> Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","SpriteNumber",GetPlayerSprite(Index))> Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting","Yes")> Call PlayerMsg(Index,"You mounted", WHITE)> Call SetPlayerSprite(Index, 109)> Call LockAttack(Index, 1)> Call LockSpells(Index, 1)> Call SetSpeed(Index, "walk", 16)> Else> Call PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No")> Call SetPlayerSprite(Index, Getvar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount", "SpriteNumber"))> Call SetPlayerSprite(Index, 141)> Call LockAttack(Index, 0)> Call LockSpells(Index, 0)> Call SetSpeed(Index, "walk", 4)> Call SendPlayerData(index)> Call PlayerMsg(Index,"You dismounted", WHITE)> End ifIt is inside Sub ScriptedItem.If anyone could help me I would greatly appreciate it. Link to comment Share on other sites More sharing options...
durama Posted June 19, 2009 Share Posted June 19, 2009 Call PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No")this is suppose to beElse GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="Yes" Theni believe that is your problem see if that works?sry messed up but i chaged it now XD Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 19, 2009 Share Posted June 19, 2009 @durama:> Call PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No")> > this is suppose to be> > If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="Yes" Then> > i believe that is your problem see if that works?I think that's just the format from the quote tags (next time, he should use code tags).Anyway, after "Call LockSpells(Index, 1)" but before "Call SetSpeed(Index, "walk", 16)", put:Call SendPlayerData(Index) Link to comment Share on other sites More sharing options...
bboy44 Posted June 19, 2009 Author Share Posted June 19, 2009 I did what you said Admiral but it still does not seem to work.> Case 1> If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="No" Then> Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","SpriteNumber",GetPlayerSprite(Index))> Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting","Yes")> Call PlayerMsg(Index,"You mounted", WHITE)> Call SetPlayerSprite(Index, 109)> Call LockAttack(Index, 1)> Call LockSpells(Index, 1)> Call SendPlayerData(Index)> Call SetSpeed(Index, "walk", 16)> Else> Call PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No")> Call SetPlayerSprite(Index, Getvar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount", "SpriteNumber"))> Call SetPlayerSprite(Index, 141)> 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 June 19, 2009 Share Posted June 19, 2009 Try this:```Case 1If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="No" Or _If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="" Then Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","SpriteNumber",GetPlayerSprite(Index)) Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting","Yes") Call PlayerMsg(Index,"You mounted", WHITE) Call SetPlayerSprite(Index, 109) Call LockAttack(Index, 1) Call LockSpells(Index, 1) Call SendPlayerData(Index) Call SetSpeed(Index, "walk", 16)Else Call PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No") Call SetPlayerSprite(Index, Int(GetVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount", "SpriteNumber"))) Call SetPlayerSprite(Index, 141) Call LockAttack(Index, 0) Call LockSpells(Index, 0) Call SetSpeed(Index, "walk", 4) Call SendPlayerData(index) Call PlayerMsg(Index,"You dismounted", WHITE)End If```And please usetags and nottags for codes and scripts. Link to comment Share on other sites More sharing options...
bboy44 Posted June 19, 2009 Author Share Posted June 19, 2009 Gah..![](http://bl123w.blu123.mail.live.com/att/GetAttachment.aspx?tnail=0&messageId=07dc580c-051c-462d-82d2-40490e596c35&Aux=44|0|8CBBF18A64B7510|) Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 19, 2009 Share Posted June 19, 2009 @bboy44:> Gah..> > ![](http://bl123w.blu123.mail.live.com/att/GetAttachment.aspx?tnail=0&messageId=07dc580c-051c-462d-82d2-40490e596c35&Aux=44|0|8CBBF18A64B7510|)The image isn't showing up for me, can you use www.tinypic.com or something? Link to comment Share on other sites More sharing options...
bboy44 Posted June 19, 2009 Author Share Posted June 19, 2009 Oh, here..![](http://i41.tinypic.com/2zsxkyc.jpg) Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 19, 2009 Share Posted June 19, 2009 Okay, I see what I did wrong; I added another "If" (if you look at that line, it should jsut be GetVar, not "If GetVar").Anyway, try this:```Case 1If GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="No" Or _GetVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting")="" Then Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","SpriteNumber",GetPlayerSprite(Index)) Call PutVar("Scripts\Charextras\" &GetPlayerName(Index)& ".ini","Mount","IsMounting","Yes") Call PlayerMsg(Index,"You mounted", WHITE) Call SetPlayerSprite(Index, 109) Call LockAttack(Index, 1) Call LockSpells(Index, 1) Call SendPlayerData(Index) Call SetSpeed(Index, "walk", 16)Else Call PutVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount","IsMounting","No") Call SetPlayerSprite(Index, Int(GetVar("Scripts\Charextras\" & GetPlayerName(Index) & ".ini","Mount", "SpriteNumber"))) Call SetPlayerSprite(Index, 141) 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...
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