Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

jandsilantbob

Members
  • Posts

    38
  • Joined

  • Last visited

    Never

jandsilantbob's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. @Gh0st: > You should try downloading the newest client/server. have they released new downloads in the past week because i just started using eclipse (and downloaded EE2.7) about 2 weeks ago and spells still don't work. I had to learn how to script just so my game could have spells, which i guess isn't really a bad thing, i had to learn some time :P
  2. wow i'm 16 and i thought _I_ was one of the younger ones on this forum.
  3. My map scroll is 50X50 I just wanted more because now i have to spread them out. I only want around 20\. That way i can also have other "good" NPCs on the map as well.
  4. is there any way to have more than 15 NPC's on one map??
  5. @DarkMazer: > I rewrote the entire thing, because the old format looked a bit convoluted for my tastes. > > ``` > Case 1 > If GetPlayerMP(Index) < 5 Then 'check MP > Call PlayerMsg(Index, "Not enough MP!", BRIGHTRED) > Exit Sub > End If > > target = GetPlayerTarget(Index) > If target < 0 Then > x = GetNpcX(GetPlayerMap(Index), NPCTarget) > y = GetNpcY(GetPlayerMap(Index), NPCTarget) > Else > NPCTarget = GetPlayerNpcTarget(Index) > x = GetPlayerX(target) > y = GetPlayerY(target) > End If > > If Abs(GetPlayerX(Index) - x) + Abs(GetPlayerY(Index) - y) > 5 Then 'check range > Call PlayerMsg(Index, "You are too far away!", BRIGHTRED) > Exit Sub > End If > > If target < 0 Then > Call DamageNPC(Index, NPCTarget, 5) > Else > Call DamagePlayer(Index, target, 5) > End If > > Call PlaySound(Index, "magic19.wav") > Call SpellAnim(50, GetPlayerMap(Index), x, y) > ``` > Hopefully you can see how the range check works in there. That Script doesn't work -.-
  6. umm i've tried multiple ways and can't figure it out, could you show me the correct syntax if i wanted my range to be 5? Here is my spell: Case 1 If getplayermp(index) > int(4) Then Mana = Getplayermp(index) Call SetPlayerMP(Index, INT(Mana - INT(5))) GetPlayerTarget(Index) Target = GetPlayerTarget(Index) Call DamagePlayer(Index, Target, INT(5)) NPCTarget = GetPlayerTargetNPC(Index) Call DamageNPC(Index, NPCTarget, INT(5)) Call Playsound(index, "magic19.wav") Call Spellanim(50, getplayermap(index), getNPCx(getplayermap(index), NPCTarget), getnpcy(getplayermap(index), npctarget)) Call Spellanim(50, getplayermap(index), getplayerx(target), getplayery(target)) ElseIf getplayermp(index) < int(5) Then Call PlayerMsg(Index, "Not enough mana.", RED) End if Exit Sub
  7. EE 2.7, i have the spell all ready scripted, just need to know how to add in a range limit.
  8. Does anyone know how to make a spell so it has a range limit?
  9. I need multiple requirements for something else to happen, how would i go about doing this?: If thing1 > thing2 > thing3 If thing4 > thing5 > thing6 If thing7 > thing8> thing9 If thing10 > thing11 > thing12 then Do this Else Do that or would i have to do this: If thing1 > thing2 > thing3, thing4 > thing5 > thing6, thing7 > thing8 > thing9, thing10 > thing11 > thing12 then Do this Else Do that
  10. umm i'm using EE 2.7 and in my data.ini i don't even have a max class option. Whenever i add a class it just pops up in the window during character creation, and i have 5 classes.
  11. Okay so i edited my Main to this: ' Executes whenever a player casts a scripted spell. Sub ScriptedSpell(Index, Script) Dim Target Select Case Script Case 0 Call PlayerMsg(Index, "This scripted spell has no apparent use.", WHITE) Exit Sub Case 1 If getplayermp(index) > int(4) Then Mana = Getplayermp(index) Call SetPlayerMP(Index, INT(Mana - INT(5))) GetPlayerTarget(Index) Target = GetPlayerTarget(Index Call DamagePlayer(Index, Target, INT(5)) NPCTarget = GetPlayerTargetNPC(Index) Call DamageNPC(Index, NPCTarget, INT(5)) Call Playsound(index, "magic19.wav") Call Spellanim(50, getplayermap(index), getplayerx(target), getplayery(target)) ElseIf getplayermp(index) < int(5) Then Call PlayerMsg(Index, "Not enough mana.", RED) End If Exit Sub Case Else Call PlayerMsg(Index, "No spell script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End Select End Sub I made a dummy spell like you suggested in the 50 slot. I set the animation for that spell to the one i want. But the spell animation still doesn't come up when i use my scripted spell.
  12. so here's what my scripted spells section looks like: ' Executes whenever a player casts a scripted spell. Sub ScriptedSpell(Index, Script) Dim Target Select Case Script Case 0 Call PlayerMsg(Index, "This scripted spell has no apparent use.", WHITE) Exit Sub Case 1 If getplayermp(index) > int(4) Then Mana = Getplayermp(index) Call SetPlayerMP(Index, INT(Mana - INT(5))) GetPlayerTarget(Index) Target = GetPlayerTarget(Index) Call DamagePlayer(Index, Target, INT(5)) NPCTarget = GetPlayerTargetNPC(Index) Call DamageNPC(Index, NPCTarget, INT(5)) Call Playsound(index, "magic19.wav") Call Spellanim(1, getplayermap(index), getplayerx(target), getplayery(target)) ElseIf getplayermp(index) < int(5) Then Call PlayerMsg(Index, "Not enough mana.", RED) End If Exit Sub Case Else Call PlayerMsg(Index, "No spell script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End Select End Sub Everything works, even the sound, except for the animation. What am i doing wrong?
  13. I scripted my own spell so it would take damage from the target, take mana away from the player, and come up with a message if you don't have enough mana. However i need to add a few more things I'm not exactly sure how these commands work and need some help on the specifics. I want my spell to make a sound, so i guess the command is: Call Playsound(index, _________) however i don't know what to put in the blank, i want it to use the magic19.wav file located in the SFX folder, but am not sure what to put in the command to make it play that file. I was also wondering if there was any type of command like GetPlayerTargetX and GetPlayerTargetY, that way i could do something about making a range limit for my spells. I also don't quite understand the Spellanim command.
  14. I'm not exactly sure how these commands work and need some help on the specifics. I want my spell to make a sound, so i guess the command is: Call Playsound(index, _________) however i don't know what to put in the blank, i want it to use the magic19.wav file located in the SFX folder, but am not sure what to put in the command to make it play that file. I was also wondering if there was any type of command like GetPlayerTargetX and GetPlayerTargetY, that way i could do something about making a range limit for my spells. I also don't quite understand the Spellanim command.
×
×
  • Create New...