monowolf00 Posted July 30, 2008 Author Share Posted July 30, 2008 ```Select Case Script Case 1 If GetPlayerMP (index >=10 Then Call SetPlayerSTR (index, int(GetPlayerSTR +20,30)) Call SetPlayerDEF (index, int(GetPlayerDEF -10,30)) Call SetPlayerMAGI (index, int(GetPlayerMAGI -10,30)) End If End Select```Its my first script, but when I go to use it it wont cast. It just says "spell successfully memorized". I am casting it from the spells menuso dont say "You have to cast it from the spells menu, not inventory….".I need your help.Thanks in advance. Link to comment Share on other sites More sharing options...
balliztik1 Posted July 30, 2008 Share Posted July 30, 2008 ```Case 1If GetPlayerMP(index) >= 10 ThenCall SetPlayerStr(index, GetPlayerStr(index) + 20)Call SetPlayerDef(index, GetPlayerDef(index) - 10)Call SetPlayerMagi(index, GetPlayerMagi(index) - 10)Call SetPlayerMP(index, GetPlayerMP(index) - 10)Call SendStats(index)Call SendMP(index)End If``` Link to comment Share on other sites More sharing options...
monowolf00 Posted July 30, 2008 Author Share Posted July 30, 2008 Ok thanks Link to comment Share on other sites More sharing options...
balliztik1 Posted July 30, 2008 Share Posted July 30, 2008 Bleh, sorry that I didn't explain. Just busy right now. I added indices to the functions and sent some values. Link to comment Share on other sites More sharing options...
monowolf00 Posted July 30, 2008 Author Share Posted July 30, 2008 How can i make it so that It only lasts for about a minute? Link to comment Share on other sites More sharing options...
munro Posted July 30, 2008 Share Posted July 30, 2008 a timeredit:put this sub at the bottom of main.txtSub Spell(index)If GetPlayerMP(index) >= 10 ThenCall SetPlayerStr(index, GetPlayerStr(index) + 20)Call SetPlayerDef(index, GetPlayerDef(index) - 10)Call SetPlayerMagi(index, GetPlayerMagi(index) - 10)Call SetPlayerMP(index, GetPlayerMP(index) - 10)Call SendStats(index)Call SendMP(index)End IfEnd Subadd this to scripted spellCase 1call settimer("Spell" & index, 10000)call removetimer("Spell" & index)change 10000 to a number to change how long it last's Link to comment Share on other sites More sharing options...
munro Posted July 30, 2008 Share Posted July 30, 2008 i think that'l work…. i just wrote it quickly Link to comment Share on other sites More sharing options...
monowolf00 Posted July 30, 2008 Author Share Posted July 30, 2008 oh tyvm Link to comment Share on other sites More sharing options...
munro Posted July 30, 2008 Share Posted July 30, 2008 if that doesnt work try this…Sub Spell(index)If GetPlayerMP(index) >= 10 ThenCall SetPlayerStr(index, GetPlayerStr(index) + 20)Call SetPlayerDef(index, GetPlayerDef(index) - 10)Call SetPlayerMagi(index, GetPlayerMagi(index) - 10)Call SetPlayerMP(index, GetPlayerMP(index) - 10)Call SendStats(index)Call SendMP(index)call removetimer("Spell" & index)End IfEnd SubandCase 1call settimer("Spell" & index, 10000) Link to comment Share on other sites More sharing options...
balliztik1 Posted July 31, 2008 Share Posted July 31, 2008 "Spell " & indexYou need a space within the quotation marks. Link to comment Share on other sites More sharing options...
munro Posted July 31, 2008 Share Posted July 31, 2008 oh snap, damn Balliztik always correcting me Link to comment Share on other sites More sharing options...
balliztik1 Posted July 31, 2008 Share Posted July 31, 2008 _That's what I'm here for…I guess._Actually, that's improper English. Ending a sentence with a preposition. Tsk tsk, Balliztik. Here's how it should be written, silly:_That's for what I'm here…I guess._Ah, contemporary writing, Balliztik. Don't forget. Only Shakespeare would say "what for" and "for what" and such. Here we go:_That's why I'm here…I guess._ Link to comment Share on other sites More sharing options...
monowolf00 Posted July 31, 2008 Author Share Posted July 31, 2008 Lol you are sounding emo. Must….Fight....Emo....Urges.... Link to comment Share on other sites More sharing options...
munro Posted July 31, 2008 Share Posted July 31, 2008 no that isnt emo, thats just smart Link to comment Share on other sites More sharing options...
monowolf00 Posted July 31, 2008 Author Share Posted July 31, 2008 > _That's why I'm here…I guess._that sounded emo… Link to comment Share on other sites More sharing options...
JoshKlaz Posted July 31, 2008 Share Posted July 31, 2008 Your mom sounds emo.>.><.<>.< Link to comment Share on other sites More sharing options...
monowolf00 Posted July 31, 2008 Author Share Posted July 31, 2008 wtf…. :hiding: 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