Jump to content
  • 0

The best way to get the level of the opponent in WoE?


trickzjen23

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   0
  • Joined:  11/25/11
  • Last Seen:  

Hi! I would like to ask for what is the best way to get the level of the opponent without using SQL Query.

 

I do have a

OnPCKillEvent:

 

and I can get the killer id with

set @killedrid, killedrid;

 

Well, my question is, how would I be able to check the level of the opponent without doing a query, cause it will take a lot of server resources if I do query every time a character try to kill.

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

OnPCKillEvent:
	.@lvl_opponent = readparam( 11, rid2name( killedrid ) );
	end;

Using readparam (param number 11 is baselevel)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   0
  • Joined:  11/25/11
  • Last Seen:  

Thank you! is it also possible to get which map or location of a specified char id?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

use getmapxy

 

getmapxy(.@m$,.@mx,.@my,0,rid2name( killedrid ))

Edited by QQfoolsorellina
  • Upvote 1
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...