Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-02-2006, 04:00 PM
Magadal Magadal is offline
Banned
Join Date: Jan 2005
Location: Germany
Posts: 942
Magadal will become famous soon enough
Staffblocks

Well...I made some test weapon and class for staffblocks, and also a script in the class to destroy them when its right clicked, but they will show again after updating the level or reconnecting.
I used putnpc2 to put them in the level, and the destroy command is clientside (if that helps).

I need some help please
Reply With Quote
  #2  
Old 12-02-2006, 04:02 PM
michael7849 michael7849 is offline
Playerworld21 Manager
Join Date: Aug 2006
Posts: 81
michael7849 is an unknown quantity at this point
um welkl i have a staff block u can prob use but its on my server....
__________________
Graal Account: michael7849
Graal Nick: element
AIM: Garbagemonkey32
MSN: [email protected]
Email: [email protected]
Server: Playerworld21

PRIVATE MESSAGE ME HERE

Buddy me

My profile

Last edited by Darlene159 : Today at 12:30AM. Reason: Added more spam to your post.

Stefan you need to read your pms more...

G OTO MY myspace.com/mikeandu

YES I AM EMO/GOTH
Reply With Quote
  #3  
Old 12-02-2006, 04:03 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
The destroy(); has to be serverside for the npc to be completely removed. Otherwise you're just removing the instance for one person.
Reply With Quote
  #4  
Old 12-02-2006, 04:08 PM
Magadal Magadal is offline
Banned
Join Date: Jan 2005
Location: Germany
Posts: 942
Magadal will become famous soon enough
Quote:
Originally Posted by Twinny View Post
The destroy(); has to be serverside for the npc to be completely removed. Otherwise you're just removing the instance for one person.
Yea I also thought about that, but somehow it wont work if I put it serverside. I also already tried to trigger it, didnt work though.
Reply With Quote
  #5  
Old 12-02-2006, 04:12 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Triggers are evil in classes.

http://forums.graalonline.com/forums...ad.php?t=69691

Some methods were detailed in this post about getting triggers to work in classes.
Reply With Quote
  #6  
Old 12-02-2006, 04:39 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Haha, Yeah.

I just had mine completely serverside (except for right clicking to get the commands.)

PHP Code:
function onCreated() {
  
image "uprising_staffblock.gif"//You can put your own image here.
  
drawunderplayer();
}
function 
onActionLeftMouse() {
  if (
player.account in serverr.admins) { //You can change this to whatever checks for staff powers
    
if (player.chat.starts("/destroy")) {
      
client.messages.add("Destroyed staffblock" SPC id); //The messages.add are for a messages system I had
      
destroy();
    }
    else if (
player.chat.starts("/message")) {
      
client.messages.add("Set message of staffblock" SPC id);
      
message(player.chat.substring(9,-1));
    }
  }

__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #7  
Old 12-03-2006, 01:16 AM
Magadal Magadal is offline
Banned
Join Date: Jan 2005
Location: Germany
Posts: 942
Magadal will become famous soon enough
Already got it to work because Twinny helped me ingame, but thanx anyways :P
Reply With Quote
Reply


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 06:58 AM.


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