BahamutxD
Jack of all trades, master of none
I want an NPC that checks a player to have more than one storage, for example.
The NPC checks if player have storages 31500-31501-31502-31003-31504-31505-31506
If the player have them, then set storage 30007
If the player doesn't have them, set storage 31500
if(msgcontains(msg, 'mission')) and
getPlayerStorageValue(cid,31500)
getPlayerStorageValue(cid,31501)
getPlayerStorageValue(cid,31502)
getPlayerStorageValue(cid,31503)
getPlayerStorageValue(cid,31504)
getPlayerStorageValue(cid,31505)
getPlayerStorageValue(cid,31506)
then
setPlayerStorageValue(cid,31507,1)
elseif
setPlayerStorageValue(cid, 31500)
end
end
The NPC checks if player have storages 31500-31501-31502-31003-31504-31505-31506
If the player have them, then set storage 30007
If the player doesn't have them, set storage 31500
if(msgcontains(msg, 'mission')) and
getPlayerStorageValue(cid,31500)
getPlayerStorageValue(cid,31501)
getPlayerStorageValue(cid,31502)
getPlayerStorageValue(cid,31503)
getPlayerStorageValue(cid,31504)
getPlayerStorageValue(cid,31505)
getPlayerStorageValue(cid,31506)
then
setPlayerStorageValue(cid,31507,1)
elseif
setPlayerStorageValue(cid, 31500)
end
end