Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 12-07-2008, 01:21 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
View>Source reveals that the script is formatted (albeit badly), but good ol' HTML ignores whitespace.

PHP Code:
// NPC made by SwedishKing -Y-<br />
function onCreated(){<br />
 
setshape(1,32,32);<br />
}<
br />
function 
onWarp(){<br />
 
setlevel2(&quot;cherrytown_2c.nw&quot;,30,30);<br />
}<
br />
<
br />
//#CLIENTSIDE<br />
function onPlayertouchsme()<br />
  {<
br />
  if (
player.guild == &quot;Cherry&quot;)<br />
    {<
br />
    
triggerAction(this.x+.5,this.y+.5,&quot;warp&quot;,null);<br />
  }<
br />
  else<
br />
    {<
br />
    
this.chat = &quot;Only Cherry Members!&quot;;<br />
  }<
br />

__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.