Shinmaru
エロルアー Scripter!
BUMP the UPDATE!!
09:56 Elvarion [3674]: skull helmet
09:56 Gor'noth: Do you really want to learn how to smith skull helmet?
09:56 Elvarion [3674]: yes
09:56 Gor'noth: You learned the recipe of smithing skull helmet.
09:57 Elvarion [3674]: steel shield
09:57 Gor'noth: Do you really want to learn how to smith steel shield?
09:57 Elvarion [3674]: yes
09:57 Gor'noth: Your blacksmithing skill is too low.
Debug Assertion 8.60 Utils.cpp 501
Wed Sep 01 11:26:25 2010
Graphic Engine: OpenGL (1)
Operation System: Windows XP Professional in SWE
Processor: Intel Pentium 4 3.20 GHZ
Video Card: NVIDIA GeForce 6800
Last Packet Types: 150 109 109 109 109 109 103 109 109 109
Last Packet: 150 003 000 000 000 011 011 153 032 000 000 000 000 000 000 000
Player Position: [160,47,7]
Planer Name: Questaren (NaxedOt)
Player Action: 049 050 055 046 048 046 048 046 049 058 055 049 055 050
Player.cpp 361: exception occurred, reason:
Network.cpp 946: exception occured (ErrorCode = 0), reason:
Control.cpp 1331: exception occurred (Type = 150) (MainWindow = 21118696),
reason:
Communication.cpp 2619: exception occurred, reason:
Network.cpp 504: exception occurred, reason:
Utils.cpp 501: assertion failed (Position = 21) (Size = 21), reason:
Position<=Size-2
You are suppose to make a tile/item AID 4500 and then stand next to it or on it? Right? Cause I did that and it keeps saying "The forge is too far from you."
What's wrong?
15:05 You see an anvil.
ItemID: [8671], ActionID: [4500].
Position: [X: 3394] [Y: 3544] [Z: 8].
15:05 You see yourself. You are god.
Health: [155 / 155], Mana: [5 / 5].
Position: [X: 3394] [Y: 3545] [Z: 8].
As you can see Im standing next to it
You are supposed to make an tile with the AID of 4500 then stand on it, Not next to it =)
Hope that helps.
function onSay(cid, words, param)
if getPlayerStorageValue(cid, 60010) < 0 then
setPlayerStorageValue(cid, 60010, 0)
end
param = string.lower(param)
if recipes[param] then
if getPlayerStorageValue(cid, recipes[param].storage) == 1 then
if getPlayerStorageValue(cid, 60010) >= recipes[param].skill then
if getPlayerItemCount(cid, config.tool) > 0 then
smithTile = [COLOR="blue"]getPlayerPosition(cid)[/COLOR]
smithTile.stackpos = 0
if getThingfromPos(smithTile).actionid == config.actionId then
for items, count in pairs(recipes[param].requiredItems) do
if getPlayerItemCount(cid, items) < count then
doCreatureSay(cid, "You don't have required ingredients to craft ".. param .. ".", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return true
end
end
for items, count in pairs(recipes[param].requiredItems) do
doPlayerRemoveItem(cid, items, count)
end
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
craftedItem = doCreateItemEx(getItemIdByName(param), 1)
doItemSetAttribute(craftedItem, "description", "It was crafted by ".. getPlayerName(cid) ..".")
doPlayerAddItemEx(cid, craftedItem, true)
doPlayerAddOwnSkill(cid, 60010, recipes[param].skill)
doCreatureSay(cid, "You've crafted ".. param ..".", TALKTYPE_ORANGE_1)
return true
else
doCreatureSay(cid, "The forge is too far from you.", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doCreatureSay(cid, "You don't have required tools to craft ".. param ..".", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doCreatureSay(cid, "You don't have enought blacksmithing skill to craft ".. param .. ".", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doCreatureSay(cid, "You don't have recipe for that.", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doCreatureSay(cid, "There is no such a recipe.", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end
getCreatureLookPosition(cid)
Your blacksmithing skill is too low.
I will try to help you out a bit on the NPC thing, because this line:
is not even in the script...unless you've added it yourself,Code:Your blacksmithing skill is too low.
well I'll be back from work soon.
elseif(msgcontains(msg, "yes")) then
if(talkState[talkUser] > 0) then
if(talkState[talkUser] == values.talkState) then
if(getPlayerStorageValue(cid, 60010) >= values.skill) then
npcHandler:say("Your blacksmithing skill is too low.", cid, 1000)
talkState[talkUser] = 0
return true
end
When i talk to the npc, he doesnt give me any recipes or tools, he do take the money tho!