Jump to content

@autolootclass


chriser

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  01/29/13
  • Last Seen:  

Hi guys,

 

just finished the @autolootclass (@alootcls) implementation. If you have any problems or questions, just let me know.

The command works exactly like @alootid, except that it loots specific item types (e.g.  @alootcls +6 loots cards only)

To make it work for players, you have to add the command to your groups.conf of course.

 

 

Greets~

chriser

 

Edit: Fixed compile error

alootcls.patch

Edited by chriser
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

I'll try this, and report here if i encountered some problems or bugs.



Error in Compiling, Im using Windows 7 x64

 

2>d:\ragnarok online\rathena\src\map\atcommand.c(5941) : error C2143: syntax error : missing ';' before 'type'
2>d:\ragnarok online\rathena\src\map\atcommand.c(5945) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5955) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5955) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5955) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5955) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5955) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5955) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5962) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5963) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5963) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5968) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5973) : error C2106: '=' : left operand must be l-value
2>d:\ragnarok online\rathena\src\map\atcommand.c(5974) : error C2065: 'type' : undeclared identifier
2>d:\ragnarok online\rathena\src\map\atcommand.c(5974) : error C2065: 'type' : undeclared identifier


@FIX:

 

add "int type = 0;" before "int i;" and delete the "int" in "int type = atoi(message);"



I'm Curious about this msg, 0 = Usable : healing 2 = Usable : other 3 = Misc 4 = Weapon 5 = Armor 6 = Card 7 = Pet Egg 8 = Pet Equipment 10 = Arrow/Ammunition 11 = Usable : delayed consumption (items with script "pet" or "itemskill")

 

why is there no number 1?

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

I was actually working on an implementation as well. Glad to see you got around to it.

 

@Rage

The reason is because the enum value 1 in item_types is IT_UNKNOWN and value 9 is IT_UNKNOWN2.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

oh i see, thank you so much aleos :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  01/29/13
  • Last Seen:  

Fixed the error, should work now too :D (seems windows is using not using C99)

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Can I use this with eAthena?

Link to comment
Share on other sites

  • 5 years later...

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   26
  • Joined:  11/20/11
  • Last Seen:  

i hope there is an updated version of this @chriser @Aleos @Limestone

@Peopleperson49 how about this one?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

This was made in the period of time when I wasn't doing anything with RO. I am in the military and my deployment got extended multiple times so I had to leave my server to be managed by others must longer than expected. They ran it into the ground and when I got back it was dead. Before I left for deployment it had almost 1200 regular players (which costs me out the butt for hosting). I had got lucky a couple times and absorbed a couple big servers that went down and it was still growing. After the official shut down I just didn't have the heart to restart again as long as I am in the military. I am still looking for a good mid rate server to share all my custom stuff with, but so far nothing has presented itself. Long story short, sorry I don't have it.

Peopleperson49

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
Reply to this topic...

×   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...