ProfStof 1 Posted August 26, 2014 Share Posted August 26, 2014 Hello ! I want to know how to interdict the use of an item on a map, type the scroll back on a map. Thank you and sorry for my bad english Link to comment Share on other sites More sharing options...
Xero 9 Posted August 26, 2014 Share Posted August 26, 2014 quest maps_items begin state start begin when login begin loop_timer("check_pos", 60) -- check every 60 seconds, you can change check timer end when check_pos.timer begin local Items = {479, 71018, 18, 279, 289} -- Items, you can add any items local Maps = {1, 21, 41} -- map_index, you can add any map for i=1, table.getn(Items, Maps), 1 do if pc.count_item(Items[i]) >= 1 and pc.get_map_index(Maps[i]) then syschat("WARNING: You Can't Login This Map With This Item"..item_name(Items[i])) -- message warp_to_village() end end end end end I made it for you Link to comment Share on other sites More sharing options...
ProfStof 1 Posted August 27, 2014 Author Share Posted August 27, 2014 Thanks for the effort but it doesn't work, see that when a player login he'll be teleported to village after the loop_timer and so and so .... non stop Link to comment Share on other sites More sharing options...
Premium Galet 513 Posted August 27, 2014 Premium Share Posted August 27, 2014 I will do a tutorial (clientside blocking) Link to comment Share on other sites More sharing options...
Xero 9 Posted August 27, 2014 Share Posted August 27, 2014 really !! idk, maybe because you've copying and pasting without reading anything Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now