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

Lua npc script nil value

volitar

New Member
Joined
Dec 2, 2008
Messages
61
Reaction score
0
i have try fix much as possible but dont know how this should be so hope your your help.

PHP:
if getCreatureStorage(cid, creature.questStarted) > 0 then getCreatureStorage if (cid, creature.questStarted) 
if getCreatureStorage(cid, creature.questStorage) < 0 creature.killsRequired then getCreatureStorage 
if (cid, creature.questStorage) <creature.killsRequired then 
if getCreatureStorage(cid, creature.questStorage) < 0 then getCreatureStorage if (cid, creature.questStorage) <0 then 
doCreatureSetStorage(cid, creature.questStorage, 0) doCreatureSetStorage (cid, creature.questStorage, 0) 
end 

if getCreatureStorage(cid, creature.creatureStorage) < 0 then getCreatureStorage if (cid, creature.creatureStorage) <0 then 
doCreatureSetStorage(cid, creature.creatureStorage, 0) doCreatureSetStorage (cid, creature.creatureStorage, 0) 
end 
doCreatureSetStorage(cid, creature.questStorage, getCreatureStorage(cid, creature.questStorage) + 1) doCreatureSetStorage (cid, creature.questStorage, getCreatureStorage (cid, creature.questStorage) + 1) 
doCreatureSetStorage(cid, creature.creatureStorage, getCreatureStorage(cid, creature.creatureStorage) + 1) doCreatureSetStorage (cid, creature.creatureStorage, getCreatureStorage (cid, creature.creatureStorage) + 1) 
doPlayerSendTextMessage(cid, msgType, "" .. getCreatureStorage(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getCreatureStorage(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".") doPlayerSendTextMessage (cid, MsgType, "" .. getCreatureStorage (cid, creature.creatureStorage) .. "" .. getCreatureName (target) .. "defeated. Total [" .. getCreatureStorage (cid, creature.questStorage) .. "/ ".. .. creature.killsRequired"] ".. .. creature.raceName". ") 
end  
end 
end 
return true  
end
 
Last edited:
Back
Top