View Single Post
  #5  
Old 06-08-2006, 11:33 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by konidias
yes. that is the general idea.
Does anyone have an example of a bomb script? I'm not sure what NPC is messed up, but I think it's my bomb class:
Class:
PHP Code:

function onCreated()
{
  
showimg(10,"bomb.png",x,y);
  
setshape(1,32,32);
  
settimer(3);
}
function 
onTimeout()
{
  
putexplosion(x,y,1,3);

And the script calling this class:
PHP Code:
function onActionserverside()
{
  
join("bomb");
  
putnpc2(playerx,playery,{join("bomb")});
}
//#CLIENTSIDE
function onWeaponfired()
{
  
triggeraction(0,0,"serverside","Bomb test","bomb");


Last edited by excaliber7388; 06-08-2006 at 11:54 PM..
Reply With Quote