Brothers 24 Report post Posted July 19, 2018 I know there was a topic of this, but i cant find it anymore. What i want: When i kill some special mobs, i want to make money (instead of exp?).. Can anyone help me or link with the old topic? Thank you - Ivy Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted July 19, 2018 Hello, @Brothers! Find function GetExp_PKM in file exp_and_level.lua (GameServer\resource\scripts\calculate) and add the following code at the beginning of the function: AddMoney(atk, 0, 1000) where 1000 is the amount of gold the character will receive. function GetExp_PKM(dead, atk) AddMoney(atk, 0, 1000) -- Original code . . . end 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
Brothers 24 Report post Posted July 22, 2018 Hey, @V3ct0r! As always, thank you very much :) Quote Share this post Link to post Share on other sites
quad 17 Report post Posted July 22, 2018 5 hours ago, Brothers said: Hey, @V3ct0r! As always, thank you very much :) and if you're trying to use it only on specific monsters, then add a condition: local monster = GetChaID(dead) if monster == monster_id then --addmoney end Quote Share this post Link to post Share on other sites
Masuka00 54 Report post Posted December 24, 2019 On 7/22/2018 at 5:14 AM, quad said: and if you're trying to use it only on specific monsters, then add a condition: local monster = GetChaID(dead) if monster == monster_id then --addmoney end its posible to add more monsters id separated with , ? Quote ǤØĐ βŁ€ŞŞ ƤƗŘΔĆ¥ Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted December 24, 2019 (edited) 8 hours ago, Masuka00 said: its posible to add more monsters id separated with , ? try this function GetExp_PKM(dead, atk) local MonsterIDs = { [789] = 5000, ---monster id --- gold amount } local monster = GetChaID(dead) for i,v in pairs(MonsterIDs) do if (i == monster) then AddMoney(atk, 0, v) break end end end Edited December 24, 2019 by mkhzaleh 2 Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted December 28, 2019 @mkhzaleh You can make it easier: if (MonsterIDs[monster] ~= nil) then AddMoney(atk, 0, MonsterIDs[monster]) end 2 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
Masuka00 54 Report post Posted December 29, 2019 (edited) 16 hours ago, V3ct0r said: @mkhzaleh You can make it easier: if (MonsterIDs[monster] ~= nil) then AddMoney(atk, 0, MonsterIDs[monster]) end I got this but i figure out The is something between well I know that many already know what I mean but I comment in case anyone wanted to know and can you tell the difference? If someone out there is just as lazy like me who only copies and pastes and then comes to say why the scrip does not work , take the time to inspect every detail, I just say it in a good way. And thank you very much for the scrip code, I had not reviewed it until today to take away the doubt, but it took me almost 1 hour to realize my mistake, I have been in the forums for years but this of the scrip codes is not my thing. Again, thank you very much Edited December 29, 2019 by Masuka00 Quote ǤØĐ βŁ€ŞŞ ƤƗŘΔĆ¥ Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted December 29, 2019 2 hours ago, Masuka00 said: I got this but i figure out The is something between well I know that many already know what I mean but I comment in case anyone wanted to know and can you tell the difference? If someone out there is just as lazy like me who only copies and pastes and then comes to say why the scrip does not work , take the time to inspect every detail, I just say it in a good way. And thank you very much for the scrip code, I had not reviewed it until today to take away the doubt, but it took me almost 1 hour to realize my mistake, I have been in the forums for years but this of the scrip codes is not my thing. Again, thank you very much when you do copy past from forums you may have extra symbols like this Quote Share this post Link to post Share on other sites
Masuka00 54 Report post Posted December 29, 2019 @mkhzalehhow to see the extrasymbols on the notepad++? Quote ǤØĐ βŁ€ŞŞ ƤƗŘΔĆ¥ Share this post Link to post Share on other sites
1g0rS1lv4 68 Report post Posted December 30, 2019 @ Masuka00 Download 1 Quote Being better than others is for those who are weak; what matters is to be true to yourself. Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted December 30, 2019 On 12/29/2019 at 1:04 PM, Masuka00 said: @mkhzalehhow to see the extrasymbols on the notepad++? can't use Visual Studio Code 1 Quote Share this post Link to post Share on other sites
Tera 26 Report post Posted December 31, 2019 My reward settings when killing a monster 1 Quote Share this post Link to post Share on other sites
Brothers 24 Report post Posted December 31, 2019 8 hours ago, Tera said: My reward settings when killing a monster Will the items be in the temporary bag? Quote Share this post Link to post Share on other sites