• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Teleport amount of kill

ConAn Edujawa

Member
Joined
Feb 23, 2015
Messages
457
Reaction score
17
i need script that work when player kill 100 demon can use teleport

and other script need 4 player in party to can tp them

im use tfs 0.4
 
You can use a script like this to count the monsters.
https://otland.net/threads/npc-mission.211063/#post-2022378
Then create a movement script instead of an NPC to check for the storage and tp the player.
Code:
function onStepIn(cid, item, position, fromPosition)
     if getPlayerStorageValue(cid, 19000) >= 100 then
         doTeleportThing(cid, {x = 94, y = 114, z = 7})
     else
         doTeleportThing(cid, fromPosition)
         doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to kill 100 demons first.")
     end
     return true
end
 
Back
Top