Jump to content
  • 0

Automatically autoloot


Sunset

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

Helloh!

Sorry, i found no info about this.

Is there a way, of making a map automatically autoloot map?

i mean, you just enter, and you will get the loot automatically w/o turning @autoloot on. 

reason: ive added to bossnia_02 imp mobs, and the imp mob has a chance to drop 7929 ID item. even if im autolooting on the map with 100%, i get none of the loots.

I hope you can help me, best regards.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3144
  • Reputation:   1632
  • Joined:  03/26/12
  • Last Seen:  

One method of achieving this would be to use the OnPCLoadMapEvent to check if the map is bossnia_02 and then use atcommand to alootid.

The other (and most preferred) is spawning the imps via the monster script and attach an OnMobDeath event to give the player item x number of ID:7929 when it's been killed.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

2 minutes ago, Akkarin said:

One method of achieving this would be to use the OnPCLoadMapEvent to check if the map is bossnia_02 and then use atcommand to alootid.

The other (and most preferred) is spawning the imps via the monster script and attach an OnMobDeath event to give the player item x number of ID:7929 when it's been killed.

Oh wow, thanks for the really fast answer!

May i get an example, how this script would looks like, with the item ID? Ive already tried to write it, but got confused when i had to write the "player getting item" part of the script :/

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3144
  • Reputation:   1632
  • Joined:  03/26/12
  • Last Seen:  

-	script	impbossnia	-1,{

OnInit:
	monster "bossnia02",0,0,"Imp",MOBIDHERE,10,"impbossnia::OnMobDeath";
	end;

OnMobDeath:
	getitem 7929,1; // 1 Gold Coin
	end;
}

Something similar to this.

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