ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is my script
I'm not that good at coding so how do I make the npc say "but you are not level 30" if the player is not level 30? I know its very simple but I tried it and it did not work so thats why im posting it here.
Code:
if(msgcontains(msg, 'minobook')) then
selfSay(npc_message[5], cid)
end
if(msgcontains(msg, first.questname)) then
selfSay(npc_message[1], cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if (getPlayerStorageValue(cid, 1006) == 3) then
selfSay(npc_message[4], cid)
else
if playerlevel < 30 then
if(doPlayerRemoveItem(cid,first.item,first.item_count)) then
setPlayerStorageValue(cid,first.storage,3)
if(useExpReward) then
doPlayerAddExp(cid,150000)
else
doPlayerAddExp(cid, 150000)
end
selfSay(npc_message[3], cid)
doSendMagicEffect(getCreaturePosition(cid), 10)
doCreatureSay(cid, npc_message[6], TALKTYPE_ORANGE_1)
else
end
else
selfSay(npc_message[2], cid)
end
end
return true
end
end
I'm not that good at coding so how do I make the npc say "but you are not level 30" if the player is not level 30? I know its very simple but I tried it and it did not work so thats why im posting it here.