Jump to content
  • 0

Guild Owned mob


AyataneIruka

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  12/18/11
  • Last Seen:  

Hi,

I've begin to create a kind of mini-woe for some event, and i would like to know if that possible to create mob owned by the guild and recreated a kind of emperium custom for my event ? For now the only thing i've think about this is to put a security. That will make if the mob is killed by his owned guild that guive a penality. However i would like if that possible to make it act like in a real WoE.

Unfortunally i've lost my script few year ago because of a virus. So i've begin to create it from scratch again ? But i was able to do something nice in the past for this ?

 

Thanks for you helps

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

Maybe with the guardian command?

*guardian "<map name>",<x>,<y>,"<name to show>",<mob id>{,"<event label>"{,<guardian index>}};

This command is roughly equivalent to 'monster', but is meant to be used with
castle guardian monsters and will only work with them. It will set the guardian
characteristics up according to the castle's investment values and otherwise
set the things up that only castle guardians need.

Since trunk r12524:
Returns the id of the mob or 0 if an error occurred.
When 'guardian index' isn't supplied it produces a temporary guardian.
Temporary guardians are not saved with the castle and can't be accessed by guardianinfo.

Then you can have an event with the id of the guild in a variable.

OnGuardianDead:

	if(getcharid(2) == .guild_id) {
		// penalty
	}

You can create a custom emperium but you'll need to edit the source if you want it to have all the things a normal emperium has like inmunity to most skills. Use a text editor like Notepad++ or Sublime Text with the "search in folder" option and look for all the instances of MOBID_EMPERIUM in the src/map folder. Then add

Quote

|| status_get_class(bl) == MOBID_EMPERIUM2

For example.

Then you add it under

Quote

    MOBID_EMPERIUM            = 1288,

on mob.hpp

Anyways you can base your event on: https://github.com/rathena/rathena/blob/master/npc/custom/battleground/bg_emp.txt

or this: http://herc.ws/board/topic/4495-king-of-emperium-hill/

Edited by n0tttt
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  12/18/11
  • Last Seen:  

I'll do some test thanks ?

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