Jump to content
  • 0

How to stop walking through barricades


Question

12 answers to this question

Recommended Posts

Posted

use scriptcommand

setwall "<map name>",<x>,<y>,<size>,<di,<shootable>,"<name>";

and

delwall "<name>";

Creates an invisible wall, an array of "setcell" starting from x,y and doing a

line of the given size in the given direction. The difference with setcell is

this one update client part too to avoid the glitch problem. Directions are the

same as NPC sprite facing directions: 0=north, 1=northwest, 2=west, etc.

onground mob_id 1905 x,y

Posted

Well.. this is the script for it, if thats what your asking for

goldroom,75,113,0,0 monster Barricade 2800,1,0,0,0

this command can't use for setwall

if you want rewrite new script

sample script on WoeSE

arug_cas01,2,1,0 script #aru01_RL00 -1,{

OnEnable:

setwall "arug_cas01",238,74,8,6,0,"aru01_RL00";

guardian "arug_cas01",239,73," ",1905,"#aru01_RL00::OnBarrierDestroyed"; //24;

guardian "arug_cas01",241,73," ",1905,"#aru01_RL00::OnBarrierDestroyed"; //25;

guardian "arug_cas01",243,73," ",1905,"#aru01_RL00::OnBarrierDestroyed"; //26;

guardian "arug_cas01",245,73," ",1905,"#aru01_RL00::OnBarrierDestroyed"; //27;

end;

OnDisable:

delwall "aru01_RL00";

killmonster "arug_cas01","#aru01_RL00::OnBarrierDestroyed";

end;

OnBarrierDestroyed:

end;

}

Posted

hmm, im still kinda new with scripting and all.. how would the script look like say if i wanted to add it on the map... prontera, with goldroom,75,113,0,0 monster Barricade 2800,1,0,0,0 starting off the script?

Posted (edited)

just like that cept u would put

Oninit:
setwall (the rest of the command idk it off the top of my head)
end;

it will put a barricade every time you restart your server :)

edit: idk if theres supposed to be tabs on that barricade thing but yeah just follow the directions on how to use setwall or wahtever

Edited by lilcooldude69

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