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

New weapon style...

Cocoamonkey

Chocolate Monkey
Joined
Jan 28, 2009
Messages
65
Reaction score
0
I'm not sure if this has been proposed elsewhere, but I have an idea for certain weapons... Like... If you slay a certain number of a certain monster, the weapon gains strength... Like attributes are added, all based on storage values... like...
Code:
if getPlayerStorageValue(cid,10005) = 500 then
adds attributes or abilities...
I'm not a very good scripter... I'm just good with the language and I can understand just about any code I come across. If someone could help me out, one example script and I can reproduce it and perhaps this can be interesting.


Also, is it possible to add specific attack and defense to a specific item through a script but not affect the actual item's power? That'd be sick.
Rep++ for whoever helps. ^.^
Yours,
Cocoa ^_^
 
You can try it, but i'm not sure it will work. I am 90% sure it won't.

Code:
function onAdvance(cid, skill, oldLevel, newLevel)
  if getPlayerSkillLevel(cid, 1) or getPlayerSkillLevel(cid, 2) or getPlayerSkillLevel(cid, 3) or getPlayerSkillLevel(cid, 4) or getPlayerSkillLevel(cid, 5) or getPlayerSkillLevel(cid, 6) or getPlayerSkillLevel(cid, 7) == 25 then
    setItemExtraAttack(uid, 1)
  end
  return TRUE
end
You can try it, but i'm not sure it will work. I am 90% sure it won't.




Maybe this will help you alittle more... There is a released "monster counted" by slawkens (i think) that should work with this... The only problem is that this script doesn't know what item.uid it should add the attack on... Whe i have time, i will try to help more.

Code:
local config={
rotworm = 30001,
dragon = 30002,
dragon lord = 30003,
demon = 30004,
}

function onAdvance(cid, skill, oldLevel, newLevel)
  if getPlayerStorageValue(cid, config.demon) == 25 then
    setItemExtraAttack(uid, 1)
  end
  return TRUE
end
 
Last edited:
Back
Top