• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[SOLVED] HELP: Summoner Vocation

demon088

#088 in the Horde
Joined
Jun 17, 2009
Messages
254
Solutions
3
Reaction score
31
Location
Hell
Hello OtLand!
I created a new vocation on my OTS, it's called "Summoner" its like a sorcerer, it casts offensive spells as well it can summon a large variety of creatures. I'm using TFS 1.2 and summons don't go to the summoner, they just follow you until stairs or different obstacles appear on your way... I need something that can call and teleport the summons to the summoner and if it's possible to order the summons to go to "x" position.
Thanks for your help!
 
The ordering summons to go to X position would most likely require a source edit..
However the other one should be fairly simple.
Make a spell that finds the players summons then teleports them to the players position.

in 0.3.7 I would do it like this.
Code:
function onCastSpell(cid, var)
     local summons = getCreatureSummons(cid)
     local pos = getCreaturePosition(cid)
     if summons > 0 then
         for _, pid in ipairs(summons) do
             doTeleportThing(pid, pos)
         end
         return true
     end
     doSendMagicEffect(pos, CONST_ME_POFF)
     doPlayerSendCancel(cid, "You have no summons to teleport.")
     return false
end
 
Hello OtLand!
I created a new vocation on my OTS, it's called "Summoner" its like a sorcerer, it casts offensive spells as well it can summon a large variety of creatures. I'm using TFS 1.2 and summons don't go to the summoner, they just follow you until stairs or different obstacles appear on your way... I need something that can call and teleport the summons to the summoner and if it's possible to order the summons to go to "x" position.
Thanks for your help!

search button big boy ;)

https://otland.net/threads/teleport-summon-to-master-tfs-1-0.211944/
 
It's not working, I'm using TFS 1.2. I already tried with posts like this, but still not working.
It would be good if I could limit the summons as 1 maxium. I have not those options in config.lua...
I have the sources of my ots, so if you could guide me on how to add the functions to order summons that would be good!
Thanks for the help!
i am using it 1.2 now. it works...
 
i am using it 1.2 now. it works...
Too bad it's not working for me :C

EDIT: I was wrong, I missed the tag(<!) when added to globalevent.xml... I'm sorry, you were right! It already works! Thank you so much mate!
 
Last edited:
The ordering summons to go to X position would most likely require a source edit..
However the other one should be fairly simple.
Make a spell that finds the players summons then teleports them to the players position.

in 0.3.7 I would do it like this.
Code:
function onCastSpell(cid, var)
     local summons = getCreatureSummons(cid)
     local pos = getCreaturePosition(cid)
     if summons > 0 then
         for _, pid in ipairs(summons) do
             doTeleportThing(pid, pos)
         end
         return true
     end
     doSendMagicEffect(pos, CONST_ME_POFF)
     doPlayerSendCancel(cid, "You have no summons to teleport.")
     return false
end
Thanks but those codes don't work on TFS 1.2.
 

Similar threads

Replies
1
Views
165
Back
Top