Go Back   OtLand > Resources > Lua & XML > Requests & Support

Reply
Old 4th July 2009, 06:17   #1 (permalink)
Captain Orhotek
Senior Member
 
Join Date: May 2009
Posts: 118
Reputation: Captain Orhotek is on a distinguished road



Summoning Spells

I made some simple summoning spells but I have no idea how to limit how many things can be summoned.

That is a little example of the spell but at the moment all it does is summon a Orc for every dead body. I either want it to summon a couple at a cast or limit how many of that creature can be summoned in all. Like it still uses all dead bodies but only summons 2. And yes this is a crude edit of the summon undead legion spell...unless I am mistaken the code means how many dead bodies you need to summon. But that is the only thing I see..
Captain Orhotek is offline   Reply With Quote
Old 4th July 2009, 06:51   #2 (permalink)
Sync
Ø,ø
 
Sync's Avatar
 
Join Date: May 2009
Location: Canada
Posts: 1,571
Blog Entries: 1
Reputation: Sync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to behold



You could use this

__________________
Sync is offline   Reply With Quote
Old 4th July 2009, 07:17   #3 (permalink)
Captain Orhotek
Senior Member
 
Join Date: May 2009
Posts: 118
Reputation: Captain Orhotek is on a distinguished road



sigh I am not much of a coder but I tried that in a couple different ways and at first the spell didnt work then I tried this it worked just like the normal spell..

And no luck..happen to know how I can put it in where it does work...thank you for all the help.
Captain Orhotek is offline   Reply With Quote
Old 4th July 2009, 07:38   #4 (permalink)
Sync
Ø,ø
 
Sync's Avatar
 
Join Date: May 2009
Location: Canada
Posts: 1,571
Blog Entries: 1
Reputation: Sync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to beholdSync is a splendid one to behold



If your not such a good coder how come you claim you made this script yet you cant add a single line of code? Lmao

__________________
Sync is offline   Reply With Quote
Old 4th July 2009, 08:09   #5 (permalink)
Captain Orhotek
Senior Member
 
Join Date: May 2009
Posts: 118
Reputation: Captain Orhotek is on a distinguished road



I did not claim I made this...in first post I said "And yes this is a crude edit of the summon undead legion spell"

But as I said thank you for your help.
Captain Orhotek is offline   Reply With Quote
Old 4th July 2009, 08:17   #6 (permalink)
Captain Orhotek
Senior Member
 
Join Date: May 2009
Posts: 118
Reputation: Captain Orhotek is on a distinguished road



I just tried that code and while it does make two orcs on first use it no longer requires a body and if you use it again it summons about 50 of them...not really 50 but a few of them.
Captain Orhotek is offline   Reply With Quote
Old 5th July 2009, 00:52   #7 (permalink)
Captain Orhotek
Senior Member
 
Join Date: May 2009
Posts: 118
Reputation: Captain Orhotek is on a distinguished road



I hate to make another post once again but I really do wish for help on this. At the moment I am just letting people on my server have fun with the spell but I do want a way to limit what they can get. I was going to use summon creature spell as a way to limit but seems that is hardcoded and not a script..

If what I am wanting is not doable is there a way to make it where that player can only have a certain amount of summons? Like instead of player being able to have 2 skeletons, 2 bugs, 2...etc he can only have 5 total summons.

Last edited by Captain Orhotek; 5th July 2009 at 01:19.
Captain Orhotek is offline   Reply With Quote
Old 6th July 2009, 04:44   #8 (permalink)
Captain Orhotek
Senior Member
 
Join Date: May 2009
Posts: 118
Reputation: Captain Orhotek is on a distinguished road



Problem Solved....lock post please.
Captain Orhotek is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 14:11.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO
Copyright ©2007 - 2010, OtLand.net.