Jump to content
  • 0

anyone can fix this?


Cisqua

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

i want this like if player kill poring it give 10 lvls per kills.

poring_w02,24,175,0,0 monster High Poring 1002,10,0,0,freebieslvl::OnPoringKilled,0,0

- script freebieslvl -1,{

if (BaseLevel=>99) goto end;;

OnPoringKilled:

atcommand "@blvl 10";

atcommand "@jlvl 10";

end;

}

}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

prt_fild01,0,0,0,0 monster Poring 1002,30,5000,0,"Freebies::OnPoringKilled"


- script Freebies -1,{
OnPoringKilled:
BaseLevel += 10;
JobLevel += 10;
end;
}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

wow very fast reply.. thanks Emistry!

Emistry how about the if? like if baselvl 99 npc wont work..

i have this error in my map server

[Warning]: script:get_val: cannot access player variable 'BaseLevel', defaulting to 0

[Error]: script_rid2sd: fatal error ! player not attached!

[Debug]: Source (NPC): Freebies (invisible/not on a map)

Edited by Cisqua
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

prt_fild01,0,0,0,0 monster Poring 1002,30,5000,0,"Freebies::OnPoringKilled"


- script Freebies -1,{
OnPoringKilled:
if (BaseLevel < 99) {
attachrid(getcharid(3));
BaseLevel += 10;
JobLevel += 10;
detachrid;
}
end;
}

untested.

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