• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Windows Rune Charges Bug

juansanchez

Advanced OT User
Joined
Apr 2, 2015
Messages
223
Reaction score
160
Hey otland people, today i need a little help with the rune charges in my OT.
So, basically, if i have 100 runes, and i make a hotkey, and use, this happends:

20:24 Using one of 100 magic wall runes...

Nothing wrong right?

But i have let's say.. 1000 runes.

I still says:

20:24 Using one of 100 magic wall runes...

It only counts 1 rune, so, it keeps on saying, 100 runes.. 100 runes.. It doesnt say all the runes i have, for example:

20:24 Using one of 1000 magic wall runes... It always go from 100 to 100. Like

20:24 Using one of 100 magic wall runes...
20:24 Using one of 99 magic wall runes...
20:24 Using one of 98 magic wall runes...
When all this 100 run out. It starts again
Using one of 100... Could someone help me?
 
I don't have the source of that. You can always choose to use a different server so you have to source for source edits.
 
I don't have the source of that. You can always choose to use a different server so you have to source for source edits.

I'll look up for that, and could you help me out with something else limos? Nothing related to this, but. I have the monsters in my OT, and they attack each other with their Waves, and the only way i know to stop that from happening is using immunitys, but now i created a monster, and it has a physical wave, and if the monster is immunity to Physical, there is no point of knights and paladins hunting there, and i would like both vocations to hunt there. Any hint about it? Maybe something that makes every monster not affect each other, no matter what...
 
If it's a certain monster you could add a script with type combat (creaturescripts), register it in the monster file, check if the target is a monster and return false.
 
If it's a certain monster you could add a script with type combat (creaturescripts), register it in the monster file, check if the target is a monster and return false.

What if it's for all the monsters? So they can't hit each other with waves?
 
Code:
function onCombat(cid, target)
     if isMonster(target) then
         return false
     end
     return true
end

To register creaturescripts in monsters.
Code:
<script>
     <event name="Name"/>
</script>
The name should be the name you used in creaturescripts.xml.
 
Code:
function onCombat(cid, target)
     if isMonster(target) then
         return false
     end
     return true
end

To register creaturescripts in monsters.
Code:
<script>
     <event name="Name"/>
</script>
The name should be the name you used in creaturescripts.xml.

What kind of event is it? Login, Death, Kill?
Also, when i add the Lines
<script>
<event name="Test"/>
</script>

the <event name="Test"/> stays black, instead of red and blue
 
The type is combat.
All the creaturescripts types are like the functions, but then without on and capital.

It's normal it stays back btw, it's because of the word script.
 
The type is combat.
All the creaturescripts types are like the functions, but then without on and capital.

It's normal it stays back btw, it's because of the word script.

Limos, it kind of worked, but i think you understood wrong e.e... When im at the ADM, i make the monster, and then summon another one, they dont attack each other, and also, their waves dont damage each other, but when i go with my normal character, their waves damage each other, if you can help me out, it needs to be not only when targeting monsters, but also when targeting players, do you get it? I dont want the waves to damage each other...
 
You can use statschange, this works with health, so the monster won't lose health when it's attacked by a monster.
Code:
function onStatsChange(cid, attacker, type, combat, value)
     if isMonster(attacker) then
         return false
     end
     return true
end
 
You can use statchange, this works with health, so the monster won't lose health when it's attacked by a monster.
Code:
function onStatsChange(cid, attacker, type, combat, value)
     if isMonster(attacker) then
         return false
     end
     return true
end

And where do i put this one? :P
 
Back
Top