I have small problem. I made my own blacksmith skill but..
function onSay(cid, words, param)
if (getPlayerStorageValue(cid, 30400) == 0) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You need to learn recpie')
elseif getPlayerItemCount(cid, 2195) == 0 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'No materials for this recpie')
elseif (getPlayerStorageValue(cid, 30400) == 1) and getPlayerItemCount(cid, 2195) >= 1 then
doSendMagicEffect(getPlayerPosition(cid),12)
doPlayerAddItem(cid,2400,1)
doPlayerRemoveItem(cid,2195,1)
doPlayerSendTextMessage(cid,22,"you created magic sword!")
end
return 1
end
can someone edit my script?
I wanna add this:
1. When item making then storageid going +1, like skill up in proffesion + text "you advanced in blacksmithing"
2. Storageid / skill maximum is level 200. Later no advances.
I hope this is possible here. Recipe needs lv 30 blacksmithing so... needs storage 30430 - 30600 no higher.. bcs other quest would make skills max
function onSay(cid, words, param)
if (getPlayerStorageValue(cid, 30400) == 0) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You need to learn recpie')
elseif getPlayerItemCount(cid, 2195) == 0 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'No materials for this recpie')
elseif (getPlayerStorageValue(cid, 30400) == 1) and getPlayerItemCount(cid, 2195) >= 1 then
doSendMagicEffect(getPlayerPosition(cid),12)
doPlayerAddItem(cid,2400,1)
doPlayerRemoveItem(cid,2195,1)
doPlayerSendTextMessage(cid,22,"you created magic sword!")
end
return 1
end
can someone edit my script?
I wanna add this:
1. When item making then storageid going +1, like skill up in proffesion + text "you advanced in blacksmithing"
2. Storageid / skill maximum is level 200. Later no advances.
I hope this is possible here. Recipe needs lv 30 blacksmithing so... needs storage 30430 - 30600 no higher.. bcs other quest would make skills max