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

check town set special special description

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- - -
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:
try this code ;s
Lua:
function onLogin(cid)

	if getPlayerMasterPos(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
	

         setPlayerStorageValue(cid, 50000, 1)
		 doSendMagicEffect(pos, CONST_ME_TELEPORT)

		end
	end
 	return TRUE
end

Rep++ If It Helpful For You
 
Last edited:
Back
Top