Jump to content
  • 0

anyone can fix this?


Question

Posted

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;

}

}

3 answers to this question

Recommended Posts

Posted
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
Posted (edited)

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
Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...