Daniel Alberto
Member
i want if you need to go up stairs you should have certain level
TFS 0.3.6
TFS 0.3.6
Attachments
-
1657765557244.png110.3 KB · Views: 3 · VirusTotal
I dont know if stair is the best choice, maybe u can put a door and limit, but can try with movements, like this bellow. Maybe u need to put this uniqueid on the tile, not stair. Just try:i want if you need to go up stairs you should have certain level
TFS 0.3.6
function onStepIn(cid, item, position, fromPosition)
level = xxx
if getPlayerLevel(cid) < level then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doPlayerSendCancel(cid,"Only level " .. level .. " can pass here.")
end
return TRUE
end
<movevent type="StepIn" uniqueid="13550" event="script" value="leveltile.lua"/>
I dont know if stair is the best choice, maybe u can put a door and limit, but can try with movements, like this bellow. Maybe u need to put this uniqueid on the tile, not stair. Just try:i want if you need to go up stairs you should have certain level
TFS 0.3.6
function onStepIn(cid, item, position, fromPosition)
level = xxx
if getPlayerLevel(cid) < level then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doPlayerSendCancel(cid,"Only level " .. level .. " can pass here.")
end
return TRUE
end
<movevent type="StepIn" uniqueid="13550" event="script" value="leveltile.lua"/>
level = xxx
thankyou so much bror <3I dont know if stair is the best choice, maybe u can put a door and limit, but can try with movements, like this:
movements/scripts
LUA:function onStepIn(cid, item, position, fromPosition) level = xxx if getPlayerLevel(cid) < level then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED) doPlayerSendCancel(cid,"Only level " .. level .. " can pass here.") end return TRUE end
movements.xml
XML:<movevent type="StepIn" uniqueid="13550" event="script" value="pisolevel.lua"/>
And u need to put this uniqueid in map editor, on stair. And remember to changeto your desired level.LUA:level = xxx
this is whatoh
thankyou so much bror <3
but i need this msg (Only level " .. level .. " can pass here.it) in the middle of screen
View attachment 69285
doPlayerSendCancel(cid,"Only level " .. level .. " can pass here.")
doPlayerSendCancel(cid,"Only level " .. level .. " can pass here.")
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Only level " .. level .. " can pass here.")
There must be a ladder, there is no second floor above iti want if you need to go up stairs you should have certain level
TFS 0.3.6
<movevent event="StepIn" actionid="xxxxx" script="theladder.lua" />
function onStepIn(cid, item, pos)
mad = {x=1000,y=1000,z=7}
target = {x=255,y=1436,z=7}
reqlevel = 1000
level = getPlayerLevel(cid)
if level < reqlevel then
doTeleportThing(cid, madness)
doSendMagicEffect(madness, 10)
doPlayerSendTextMessage(cid, 25, "Mad-Rpg: Sorry You Must Be Level 1000 or Higher To Enter This Place")
else
doTeleportThing(cid, target)
doSendMagicEffect(target, 10)
doPlayerSay(cid, "Mad-Rpg: Welcome On Hunting {2} 1000 Place", TALKTYPE_ORANGE_1)
end
end
TY BRO WORKED NOWthis is whatdo.LUA:doPlayerSendCancel(cid,"Only level " .. level .. " can pass here.")
Post automatically merged:
Oh, understood, u want the message in the middle of screen, change:
toLUA:doPlayerSendCancel(cid,"Only level " .. level .. " can pass here.")
LUA:doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Only level " .. level .. " can pass here.")
3. Duplicate Content:
- Use only one thread to post about your problem. Creating more threads or posts about the same problem is seen as spam. If you don't get a reply on your thread, wait 24 hours to post again to show you still need help.
ok sorry i didn't knowYou shouldn't create more than 1 thread asking for the same request, 1 thread is enough.
![]()
Stairs Lvl
i want if you need to go up stairs you should have certain level TFS 0.3.6 1657765595 i want if you need to go up stairs you should have certain level TFS 0.3.6otland.net
![]()
vocation error
example my vocation elder druid when i die it comes back to druid same all vocation does anyone have a solution?otland.net
![]()
Vocation
my vocation elder druid when i die or when i logout it comes back to druid same all vocation does anyone have a solution? https://gyazo.com/7b7379fe98e6de345fef533599e07167otland.net