johnbond Posted March 5, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Share Posted March 5, 2015 Kindly show me how to prohibit pet looting on pvp maps. 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ petloot 10; },{ bonus bLuk,2; bonus bCritical,1; } Im not sure if this is just a db/ edit or an edit in SRC. Please show me how to. Thank you guys. Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted March 11, 2015 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted March 11, 2015 that script "if at pvp map then don't do 'petloot'" only works when pet is hatched in pvp map. use/make custom mapflag maybe, 'nopetloot' Quote Link to comment Share on other sites More sharing options...
johnbond Posted March 7, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted March 7, 2015 Anyone? Quote Link to comment Share on other sites More sharing options...
Haziel Posted March 7, 2015 Group: Content Moderator Topic Count: 22 Topics Per Day: 0.00 Content Count: 639 Reputation: 609 Joined: 11/25/11 Last Seen: March 7 Share Posted March 7, 2015 Go to the Pet DB. 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ petloot 10; },{ bonus bLuk,2; bonus bCritical,1; } Remove all the petloot 10; from all the pets. Quote Link to comment Share on other sites More sharing options...
johnbond Posted March 8, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted March 8, 2015 Go to the Pet DB. 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ petloot 10; },{ bonus bLuk,2; bonus bCritical,1; } Remove all the petloot 10; from all the pets. No but I only want only in PVP MAPS not all maps. Thank you Sir. Quote Link to comment Share on other sites More sharing options...
Tranquility Posted March 10, 2015 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 118 Reputation: 17 Joined: 01/29/15 Last Seen: January 5, 2020 Share Posted March 10, 2015 From what I've taken from the doc and comprehend the scripting behind it enough it could be this: 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ if(!mf_pvp) {petloot 10;} else {dispbottom(sprintf("Pet looting disabled."));} },{ bonus bLuk,2; bonus bCritical,1; } If this isn't, I at least hope to have pushed you in the right direction of how to think of how to add this feature. Quote Link to comment Share on other sites More sharing options...
johnbond Posted March 10, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted March 10, 2015 From what I've taken from the doc and comprehend the scripting behind it enough it could be this: 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ if(!mf_pvp) {petloot 10;} else {dispbottom(sprintf("Pet looting disabled."));} },{ bonus bLuk,2; bonus bCritical,1; } If this isn't, I at least hope to have pushed you in the right direction of how to think of how to add this feature. Based on your idea, I used this: 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ if( getmapflag( strcharinfo(3),mf_pvp) ) { dispbottom "Pet looting is disabled in PvP"; } else { petloot 10; }; },{ bonus bLuk,2; bonus bCritical,1; } Still doesnt work. Poring still loots both in and out of pvp. No dispbottom displayed. Anything I did wrong? or perhaps the line getmapflag( strcharinfo(3) does not work for pets? Thanks. Quote Link to comment Share on other sites More sharing options...
Tranquility Posted March 10, 2015 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 118 Reputation: 17 Joined: 01/29/15 Last Seen: January 5, 2020 Share Posted March 10, 2015 From what I've taken from the doc and comprehend the scripting behind it enough it could be this: 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ if(!mf_pvp) {petloot 10;} else {dispbottom(sprintf("Pet looting disabled."));} },{ bonus bLuk,2; bonus bCritical,1; } If this isn't, I at least hope to have pushed you in the right direction of how to think of how to add this feature. Based on your idea, I used this: 1002,PORING,Poring,619,9001,10013,531,80,60,50,100,250,20,2000,150,1,0,350,400,800,{ if( getmapflag( strcharinfo(3),mf_pvp) ) { dispbottom "Pet looting is disabled in PvP"; } else { petloot 10; }; },{ bonus bLuk,2; bonus bCritical,1; } Still doesnt work. Poring still loots both in and out of pvp. No dispbottom displayed. Anything I did wrong? or perhaps the line getmapflag( strcharinfo(3) does not work for pets? Thanks. Since the petloot script itself works, I think it would be unlikely for that to not work. However, it could be that this specific script doesn't execute for pets. I am not well versed in this area, just used the doc to push you in the right direction =P Question, are the map flags set for those maps to pvp? If you could verify this, it'll be easier to debug and find the solution Quote Link to comment Share on other sites More sharing options...
johnbond Posted March 10, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted March 10, 2015 Since the petloot script itself works, I think it would be unlikely for that to not work. However, it could be that this specific script doesn't execute for pets. I am not well versed in this area, just used the doc to push you in the right direction =P Question, are the map flags set for those maps to pvp? If you could verify this, it'll be easier to debug and find the solution Yes map flags are set to pvp. I went inside with my pet and its in pvp mode. Quote Link to comment Share on other sites More sharing options...
johnbond Posted March 11, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted March 11, 2015 that script "if at pvp map then don't do 'petloot'" only works when pet is hatched in pvp map. use/make custom mapflag maybe, 'nopetloot' Oh, that explains it. Can you show me how to add the mapflag? Thank you Sir. Quote Link to comment Share on other sites More sharing options...
Cydh Posted March 11, 2015 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted March 11, 2015 hey, are u trying to be rude here? u don't even give feedback about ur asking help before and now asking again? Quote Link to comment Share on other sites More sharing options...
johnbond Posted March 11, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted March 11, 2015 hey, are u trying to be rude here? u don't even give feedback about ur asking help before and now asking again? Im sorry, im not rude hehe. Im not sure what feedback? I click "mark solved" and the "vote this post up? links. Isnt that it? Quote Link to comment Share on other sites More sharing options...
Cydh Posted March 12, 2015 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted March 12, 2015 like "it's not working", "I got error while compile it", something like that @_@ 'nopetloot' mapflag https://github.com/pservero/rathena/commit/fe8e8d99ccb230c20a945bca4bb99d8d8bb0b4d3 Quote Link to comment Share on other sites More sharing options...
johnbond Posted March 12, 2015 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 457 Reputation: 11 Joined: 02/17/13 Last Seen: January 23, 2018 Author Share Posted March 12, 2015 like "it's not working", "I got error while compile it", something like that @_@ 'nopetloot' mapflag https://github.com/pservero/rathena/commit/fe8e8d99ccb230c20a945bca4bb99d8d8bb0b4d3 Oh I havent tried it yet, Im looking for someone to merge it in my SRC. I will let you know. I will try this as well soon. I will let you know sir. Thank you. Quote Link to comment Share on other sites More sharing options...
Radian Posted March 12, 2015 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted March 12, 2015 @johnbond you can add it manually just follow what Cydh changed and add. Quote Link to comment Share on other sites More sharing options...
Question
johnbond
Kindly show me how to prohibit pet looting on pvp maps.
Im not sure if this is just a db/ edit or an edit in SRC.
Please show me how to.
Thank you guys.
Link to comment
Share on other sites
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.