Jump to content
  • 0

@request Remove Warg when entered pvp


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

hello

its posibble to remove warg from ranger when entered pvp map and gvg map?

example player 1 at maintown when entered pvp and gvg the warg automatic will turn off

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

Maybe like this

OnPCLoadMapEvent:
	getmapxy(@map, @x, @y, 0, strcharinfo(0));
	if ( (getmapflag(@map,mf_pvp) ||  getmapflag(@map,mf_gvg)) && checkwug() )
		setoption Option_Wugrider,0;
	end;
+ you need to restrict mounting warg on this maps via skill_nocast_db.txt:

2241,6;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

not working sir

 
- script offwarg -1,{
OnPCLoadMapEvent:
getmapxy(@map, @x, @y, 0, strcharinfo(0));
if ( (getmapflag(@map,mf_pvp) ||  getmapflag(@map,mf_gvg)) && checkwug() )
setoption Option_Wugrider,0;
end;
}

 

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

not working sir

My bad

OnPCLoadMapEvent:
	getmapxy(@map$, @x, @y, 0, strcharinfo(0));
	if((getmapflag(@map$,mf_pvp) ||  getmapflag(@map$,mf_gvg)) && checkwug() )
		setoption Option_Wugrider,0;
	end;
And don't forget that OnPCLoadMapEvent triggers only in a maps marked with the 'loadevent' mapflag
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

u mean example

 

mapname mapflag loadevent right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

Yes

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

check pm please

Edited by PapaZola
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...