corydurban
New Member
- Joined
- Jul 21, 2007
- Messages
- 43
- Reaction score
- 1
what i want is on login to check town and if townid = 1 then set special description to heaven if 2 then to earth if 3 then to hell
such as "you see bob he is an elite knight one of hells finest"
I'm new to scripting so not sure how to do this myself
- - - decided to use storage- - -
- - - Updated - - -
bump
- - - Updated - - -
now i need help need script where if kill monster all who helped kill get storage id
- - - Updated - - -
bump
such as "you see bob he is an elite knight one of hells finest"
I'm new to scripting so not sure how to do this myself
- - - decided to use storage- - -
Lua:
local storage = 32000
function onLook(cid, thing, position, lookDistance)
if (isPlayer(thing.uid) ~= cid and getPlayerStorageValue(thing.uid, storage) > 0) then
doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is a warrior of middle earth')
end
if (isPlayer(thing.uid) == cid and getPlayerStorageValue(thing.uid, storage) > 0) then
doPlayerSetSpecialDescription(thing.uid,'.\n are a warrior of middle earth')
end
return true
end
- - - Updated - - -
bump
- - - Updated - - -
now i need help need script where if kill monster all who helped kill get storage id
- - - Updated - - -
bump
Last edited: