Jump to content
  • 0

How to prohibit pet looting in pvp maps?


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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. :)

 

 

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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'

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Anyone?

Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   17
  • Joined:  01/29/15
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   17
  • Joined:  01/29/15
  • Last Seen:  

 

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 :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

 

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

hey, are u trying to be rude here? u don't even give feedback about ur asking help before and now asking again? /heh

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

hey, are u trying to be rude here? u don't even give feedback about ur asking help before and now asking again? /heh

 

 

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?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

like "it's not working", "I got error while compile it", something like that @_@

 

'nopetloot' mapflag https://github.com/pservero/rathena/commit/fe8e8d99ccb230c20a945bca4bb99d8d8bb0b4d3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@johnbond you can add it manually just follow what Cydh changed and add.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...