Minion 74 Posted January 4, 2015 Share Posted January 4, 2015 help Link to comment Share on other sites More sharing options...
Denis 1474 Posted January 4, 2015 Share Posted January 4, 2015 This should work: when x.chat."Test" with pc.is_gm() begin local map = input() server_timer('give_items', 1, tonumber(map)) end when give_items.server_timer begin local vnum,count = 27003,200 pc.give_item2(vnum,count) clear_server_timer('give_items', get_server_timer_arg()) end Link to comment Share on other sites More sharing options...
Minion 74 Posted January 4, 2015 Author Share Posted January 4, 2015 This should work: when x.chat."Test" with pc.is_gm() begin local map = input() server_timer('give_items', 1, tonumber(map)) end when give_items.server_timer begin local vnum,count = 27003,200 pc.give_item2(vnum,count) clear_server_timer('give_items', get_server_timer_arg()) end = crash server. pc.give_item2 is not global function 1 Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7178 Posted January 5, 2015 Honorable Member Share Posted January 5, 2015 This should work: when x.chat."Test" with pc.is_gm() begin local map = input() server_timer('give_items', 1, tonumber(map)) end when give_items.server_timer begin local vnum,count = 27003,200 pc.give_item2(vnum,count) clear_server_timer('give_items', get_server_timer_arg()) end You can't use "pc" inside a server_time "scope".Maybe an "enter" event could make a difference, otherwise it's simple to create such a thing via source. Check out my GitHub 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