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

Clary Request thread

Status
Not open for further replies.

Clary

New Member
Joined
Mar 7, 2008
Messages
1,007
Reaction score
1
Do u need any action script? or talk action? or move event?
Request it here and I will make it for u asap if I can


Remember only action, talk & move nothing else.
Move only stepin alone and maybe stepout alone

Yours,
Clary
 
Last edited:
Code:
function onStepIn(cid, item, position, fromPosition)
    if item.actionid == 20010 then
        town = 1
        name = "karmia"
    elseif item.actionid == 20011 then
        town = 2
        name = "dunno"
    --continue
    end
    doPlayerSetTown(cid, town)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You are a citizen of "..name.." city now!")
    return TRUE
end
 
lol that is what he ment! I didn't understand what he real wanted :/ dang
 
Last edited:
Like it would be some hard code... looool... adding action id check, really hard stuff! :wub:
 
hah :D Sorry about that :p I know my english... ;] but i tell you what i need....
I need teleports to all towns in my map. When i use your scripts to create teleport to the next town the old script (to Karmia) doesnt work :/ its really hard to tell... Origial i mean uniwersal like this :
function onStepIn(cid, item, pos)



if item.actionid == 7910 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident city Karmia.')
doPlayerSetTown(cid,1)
elseif item.actionid == 7911 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident city Inferna.')
doPlayerSetTown(cid,2)
elseif item.actionid == 7912 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Tiquanda city.')
doPlayerSetTown(cid,3)
elseif item.actionid == 7913 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Liberty Bay.')
doPlayerSetTown(cid,4)
elseif item.actionid == 7914 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Premium Island.')
doPlayerSetTown(cid,5)
elseif item.actionid == 7915 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Venore.')
doPlayerSetTown(cid,6)
elseif item.actionid == 7916 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Folda.')
doPlayerSetTown(cid,7)
elseif item.actionid == 7917 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Edron.')
doPlayerSetTown(cid,8)
elseif item.actionid == 7918 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident New Island.')
doPlayerSetTown(cid,9)
end

return 1
end
but i dont know this script (copied from b-fox ) doesn;t work on my tfs :/
Srry about all Clary ^^
 
Well Marcinek code got a strange end after continue o_O
try this
PHP:
function onStepIn(cid, item, position, fromPosition)
    if item.actionid == 20010 then
        town = 1
        name = "karmia"
    elseif item.actionid == 20011 then
        town = 2
        name = "dunno"
    --continue
    doPlayerSetTown(cid, town)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You are a citizen of "..name.." city now!")
         end
    return TRUE
end
P.S Marcinek the whole code is nuby :p
anyway I saw this in TFS
Code:
function onStepIn(cid, item, position, fromPosition)
	if item.actionid > 30020 and item.actionid < 30100 then
		doPlayerSetTown(cid, item.actionid - 30020)
	end
	return TRUE
end
30020 = town id = 1
30021 = town id = 2
etc
u got from 30020 to 30100
 
Last edited:
i understand :D Thanks a lot i testing and edit man :D
#edit
omg 2 scripts doesnt worked but i paste this scripts:
function onStepIn(cid, item, pos)



if item.actionid == 7910 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident city Karmia.')
doPlayerSetTown(cid,1)
elseif item.actionid == 7911 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident city Anshara.')
doPlayerSetTown(cid,2)
elseif item.actionid == 7912 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Tiquanda city.')
doPlayerSetTown(cid,3)
elseif item.actionid == 7913 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Liberty Bay.')
doPlayerSetTown(cid,4)
elseif item.actionid == 7914 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Premium Island.')
doPlayerSetTown(cid,5)
elseif item.actionid == 7915 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Venore.')
doPlayerSetTown(cid,6)
elseif item.actionid == 7916 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Folda.')
doPlayerSetTown(cid,7)
elseif item.actionid == 7917 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident Edron.')
doPlayerSetTown(cid,8)
elseif item.actionid == 7918 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You are Resident New Island.')
doPlayerSetTown(cid,9)
end

return 1
end
and this :p
function onStepIn(cid, item, pos)
if item.actionid == 7910 then
doPlayerSetTown(cid, 1)
elseif item.actionid == 7911 then
doPlayerSetTown(cid, 2)
elseif item.actionid == 7912 then
doPlayerSetTown(cid, 3)
elseif item.actionid == 7913 then
doPlayerSetTown(cid, 4)
elseif item.actionid == 7914 then
doPlayerSetTown(cid, 5)
elseif item.actionid == 7915 then
doPlayerSetTown(cid, 6)
elseif item.actionid == 7916 then
doPlayerSetTown(cid, 7)
elseif item.actionid == 7917 then
doPlayerSetTown(cid, 8)
elseif item.actionid == 7918 then
doPlayerSetTown(cid, 9)
end
return 1
end
and its working :D
BTW thanks a lot man :D if i have some other problems or question to create script i post here ^^
 
Last edited:
Code:
local towns = {"city one", "city two", "city three", "city four"}

function onStepIn(cid, item, position)
	if(item.actionid >= 7910 and item.actionid <= 7930) then
		local town = item.actionid - 7909
		doPlayerSetTown(cid, town)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You are now citizen of " .. towns[town] .. "!")
	end
end
 
Well Marcinek code got a strange end after continue o_O
try this
PHP:
function onStepIn(cid, item, position, fromPosition)
    if item.actionid == 20010 then
        town = 1
        name = "karmia"
    elseif item.actionid == 20011 then
        town = 2
        name = "dunno"
    --continue
    doPlayerSetTown(cid, town)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You are a citizen of "..name.." city now!")
         end
    return TRUE
end
P.S Marcinek the whole code is nuby :p
anyway I saw this in TFS
Code:
function onStepIn(cid, item, position, fromPosition)
	if item.actionid > 30020 and item.actionid < 30100 then
		doPlayerSetTown(cid, item.actionid - 30020)
	end
	return TRUE
end
30020 = town id = 1
30021 = town id = 2
etc
u got from 30020 to 30100

I see that u still dont get lua...
With code what u did, it will only set town for action id 20011.
 
Hey fella, im back! :D
Can you provide a premium tile script? I believe that is easy.
There, just premium players can pass thru.
Tnaks! Cya
Nice Thread///
 
Here you go :p
PHP:
function onStepIn(cid, item, pos)

pos1 = {x=1000, y=1000, z=7, stackpos=1}
item1 = getThingfromPos(pos1)

if item.actionid == 28000 then
if isPlayer(cid) == 1 then
if getPlayerPremiumDays(cid) >= 1 then
else
doTeleportThing(cid, pos1, 0)
doPlayerSendTextMessage(cid,22,'You must have premium account!')
end
end
end
return 1
end
 
i need some help

ok here this checks if you have completed a quest, if you didnt you can pass over the tile if you did complete the quest it doesn't allow to walk over the space(like the premmy bridge of rook guard but it check if you have a quest completed or not) this is what i have so far its gives me no errors but it doesnt do anything

Code:
local newPosition = {x=560, y=1260, z=10}

function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid, 5803) == -1 and getPlayerStorageValue(cid, 6492) == -1 then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You May pass.")
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have been rejected from entering.")
			doTeleportThing(cid, newPosition)
		end
	end
	return TRUE
end
 
Here you go :p
PHP:
local newPosition = {x=560, y=1260, z=10, stackpos=253}

function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid, 5803) == 1 and getPlayerStorageValue(cid, 6492) == 1 then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You May pass.")
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have been rejected from entering.")
			doTeleportThing(cid, newPosition)
		end
	end
	return TRUE
end
 
Last edited:
you think my wont work b/c i used a depot tile? i saw u check it on ur server so it must work
 
Status
Not open for further replies.
Back
Top