Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
I need a little help here
|
Author |
Message |
Kanibal ![](images/flags/Ukraine.png)
Master
![*](images/star.gif) ![*](images/star.gif)
Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0
![]()
|
RE: I need a little help here
(02-18-2016 06:30 AM)jexnico Wrote: My EquippedCast its already set to 1 :c
0 // Disallow
1 // Allow
I have a function. May be it will be useful for you.
Code:
[FUNCTION f_unequip_all]
findlayer(1).cont = <findlayer(21).uid>
findlayer(2).cont = <findlayer(21).uid>
findlayer(3).cont = <findlayer(21).uid>
findlayer(4).cont = <findlayer(21).uid>
findlayer(5).cont = <findlayer(21).uid>
findlayer(6).cont = <findlayer(21).uid>
findlayer(7).cont = <findlayer(21).uid>
findlayer(8).cont = <findlayer(21).uid>
findlayer(9).cont = <findlayer(21).uid>
findlayer(10).cont = <findlayer(21).uid>
findlayer(12).cont = <findlayer(21).uid>
findlayer(13).cont = <findlayer(21).uid>
findlayer(14).cont = <findlayer(21).uid>
findlayer(17).cont = <findlayer(21).uid>
findlayer(18).cont = <findlayer(21).uid>
findlayer(19).cont = <findlayer(21).uid>
findlayer(20).cont = <findlayer(21).uid>
findlayer(22).cont = <findlayer(21).uid>
findlayer(23).cont = <findlayer(21).uid>
findlayer(24).cont = <findlayer(21).uid>
findlayer(31).cont = <findlayer(21).uid>
findlayer(21).cont = <findlayer(29).uid>
newitem=i_backpack
new.equip
src.update
Grandmaster Localhost Admin
(This post was last modified: 02-18-2016 06:41 AM by Kanibal.)
|
|
02-18-2016 06:38 AM |
|
The following 1 user Likes Kanibal's post:1 user Likes Kanibal's post
jexnico (02-18-2016)
|
Khaos ![](images/flags/United States of America.png)
Master
![*](images/star.gif) ![*](images/star.gif)
Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11
![]()
|
RE: I need a little help here
Will fix the issue.
If you plan to use spellchanneling=1 through in items, you want to set it to 1. Then use this:
Code:
on=@SpellCast
// Spell Channeling Code.
if (<src.spellchanneling> != 1)
if (<src.findlayer.layer_hand1.uid.spellchanneling> != 1)
src.findlayer.layer_hand1.uid.unequip
endif
if (<src.findlayer.layer_hand2.uid.spellchanneling> != 1)
src.findlayer.layer_hand2.uid.unequip
endif
endif
return 0
This would simulate accurate spell channeling code. All spell books are/should be spell channeling by default (hidden property).
edit: added in parsing to check for the character having spellchanneling=1. This could be used to make it so a custom assignment would override needing spellchanneling on the item.
So good to be back. ^_^
(This post was last modified: 02-18-2016 07:04 AM by Khaos.)
|
|
02-18-2016 06:53 AM |
|
|
User(s) browsing this thread: 1 Guest(s)