• 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!

Item that when using on another one, gives elemental defense bonus.

gabriel28

Member
Joined
Mar 16, 2012
Messages
199
Solutions
6
Reaction score
24
I would like a script that when use item X on a helmet, armor, shield, legs, boots, amulet and ring, he give Y% defense against some element (ice, fire, etc), this part configurable. On script, a part to block some ids, and if the equipment was already with some element, it would cancel. My TFS is 0.4
If you can help, I thank you in advance.
PS: Sorry for my poor english.

up
 
Last edited by a moderator:
You can take a plain upgrading system and set DoItemSetAttribute, but there is no set absorbelemental.
So you have to implement absorb system. It can be found in Internet.
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    -- if (generic check to ensure the item is a piece of armor) == true then
        local percent = 50
        doItemSetAttribute(getThingFromPos(toPosition).uid, "absorbpercentelements", percent)
    -- end
    return true
end

I don't have a server anymore, but if someone wants to give it a try.. I'd try this.

If you can't add the attribute to an item, then the entire script is a flop without a source edit..
Soo basically I'd start here and start expanding the script to include the additional features if I could get this part to work.
 
absorption is not considered an attribute, it's considered an ability (along with speed, regeneration, invisibility, manashield, etc)
this cannot be done (efficiently) without source edits, heavy ones at that
i highly doubt anyone would create this for you for free
 
absorption is not considered an attribute, it's considered an ability (along with speed, regeneration, invisibility, manashield, etc)
this cannot be done (efficiently) without source edits, heavy ones at that
i highly doubt anyone would create this for you for free
a creature event would work with some storage values using onStatsChange.
 
a creature event would work with some storage values using onStatsChange.
first off, welcome back my dear friend, we've missed you here on otland.

yes, you're correct, but it's 0.4 and statschange is garbage compared to how it works in 1.2
you'd also not be using storage values unless it was to prevent stack overflow
if you were to do this through lua it would have to be done through adding "attributes" in the description (or some other premade attribute for items) and match each attribute in the string whenever statschange gets executed
aka, not efficient
 
first off, welcome back my dear friend, we've missed you here on otland.

yes, you're correct, but it's 0.4 and statschange is garbage compared to how it works in 1.2
you'd also not be using storage values unless it was to prevent stack overflow
if you were to do this through lua it would have to be done through adding "attributes" in the description (or some other premade attribute for items) and match each attribute in the string whenever statschange gets executed
aka, not efficient
We all know you don't know anything about lua or c++ so just save your breath.. you're a kid with an ego the size of the state you live in. And it shows in your poor attitude towards your fellow otlander. Have you actually stopped to read how you respond to people? You talk down to them like they are beneath you...

I logged on to an alt account so i could download maps, but I couldn't resist answering a few questions here and there. But you, you seem to live on this forum. Go get a life, a girl friend, a job, maybe you need jesus in your life? I don't like you, i don't think i ever have.

It seems to me that nothing you make is original and if anything you are trying to be another Codex but worse, at least I know how to code, you on the other hand don't.

Talking like you know what you are doing is a lot different than actually knowing what you are doing, I won't get the last word in, either this post will be deleted or one of your mod friends will just ban this account/ip and then you will all cowardly have your say, nothing new from any of you.

Whether you want me here or not is not my concern, I am not here for you and a handful of you just can't help yourselves, you have to seek me out. I haven't been since Ninja or cbrm banned me. Unlike you I have a life :)

TLDR: Too bad, your loss
 
We all know you don't know anything about lua or c++ so just save your breath.. you're a kid with an ego the size of the state you live in. And it shows in your poor attitude towards your fellow otlander. Have you actually stopped to read how you respond to people? You talk down to them like they are beneath you...

I logged on to an alt account so i could download maps, but I couldn't resist answering a few questions here and there. But you, you seem to live on this forum. Go get a life, a girl friend, a job, maybe you need jesus in your life? I don't like you, i don't think i ever have.

It seems to me that nothing you make is original and if anything you are trying to be another Codex but worse, at least I know how to code, you on the other hand don't.

Talking like you know what you are doing is a lot different than actually knowing what you are doing, I won't get the last word in, either this post will be deleted or one of your mod friends will just ban this account/ip and then you will all cowardly have your say, nothing new from any of you.

Whether you want me here or not is not my concern, I am not here for you and a handful of you just can't help yourselves, you have to seek me out. I haven't been since Ninja or cbrm banned me. Unlike you I have a life :)

TLDR: Too bad, your loss
yes
 
a creature event would work with some storage values using onStatsChange.


I actually hired him. He made this.. worked weeks on it, consulted with many ppl that script allot here still nothing worked for the absorb part. Everything else works flawless!

We all know you don't know anything about lua or c++ so just save your breath.. you're a kid with an ego the size of the state you live in. And it shows in your poor attitude towards your fellow otlander. Have you actually stopped to read how you respond to people? You talk down to them like they are beneath you...

I logged on to an alt account so i could download maps, but I couldn't resist answering a few questions here and there. But you, you seem to live on this forum. Go get a life, a girl friend, a job, maybe you need jesus in your life? I don't like you, i don't think i ever have.

It seems to me that nothing you make is original and if anything you are trying to be another Codex but worse, at least I know how to code, you on the other hand don't.

Talking like you know what you are doing is a lot different than actually knowing what you are doing, I won't get the last word in, either this post will be deleted or one of your mod friends will just ban this account/ip and then you will all cowardly have your say, nothing new from any of you.

Whether you want me here or not is not my concern, I am not here for you and a handful of you just can't help yourselves, you have to seek me out. I haven't been since Ninja or cbrm banned me. Unlike you I have a life :)

TLDR: Too bad, your loss

He is still on my payroll, does great scripts also! Mine aren't simple requested things either. All strutz, everything I request is usually a couple of weeks to a month worth of coding at times. Anything else? Of course, his attitude.. he had a cocky attitude yes, but backs it up well due to the fact he knows his shit.
 
Back
Top