TheSamurai 3 Report post Posted February 10, 2017 Can someone provide scripts on how to drop random items/items when a player get killed. Not give item but drop an item. Thanks in advance. Quote Share this post Link to post Share on other sites
DangThao 81 Report post Posted February 10, 2017 Check OOP server file. It got a script for player to drop items of his equipment(i think or was it inventory items?) Quote Share this post Link to post Share on other sites
Ximboliex 85 Report post Posted February 10, 2017 (edited) Hi @TheSamurai; RemoveChaItem(A,B,C,D,E,F,G) A = Role Handle B = Item ID C = Amount D = Bag Type (0:Equipment, 1:Equipment, 2:Bag) E = Bag Slot (Eq:0-9, Bag:0-47, -1:Unknown)F = Operation (0:Drops on floor, 1:Move to Backpack if full then nothing is done, 2 or other number: Deletes the item) G = Ignored(not use by Game) Ex for you request : RemoveChaItem( defer , itemid , amount , 2 , -1, 0 , 1 ) --if is 0 drop an item from killed bag if is other number item ill removed Edited February 10, 2017 by Ximboliex 1 Quote Share this post Link to post Share on other sites
TheSamurai 3 Report post Posted February 10, 2017 @Ximboliex thank you so much! I understand it very well, i will try and give you a feed back! 1 Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted February 10, 2017 4 hours ago, DangThao said: Check OOP server file. It got a script for player to drop items of his equipment(i think or was it inventory items?) "OOP = X?" Quote Share this post Link to post Share on other sites
DangThao 81 Report post Posted February 10, 2017 I think OOP is Order of Pirates. If i remembered correctly, that's the file got player killed player, player drop his stuff. Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted February 11, 2017 В 10.02.2017 в 12:53, Vasil сказал: "OOP = X?" Скрытый текст Object-oriented programming 1 Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites