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 06-01-2012, 03:03 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
NPC temp drop

I was wondering how Zodiac did there drops. When I have a drop NPC, even if the NPC is destroyed(), when you first enter the level, you can see all the NPCs ever place for a second or two then they go away. and it bothers me

PHP Code:
function onActionServerside() {
  
temp.npc this.level.putNPC2(player.xplayer.y""); 
  
temp.npc.join("drop");

Reply With Quote
  #2  
Old 06-01-2012, 03:58 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by brokk View Post
I was wondering how Zodiac did there drops. When I have a drop NPC, even if the NPC is destroyed(), when you first enter the level, you can see all the NPCs ever place for a second or two then they go away. and it bothers me

PHP Code:
function onActionServerside() {
  
temp.npc this.level.putNPC2(player.xplayer.y""); 
  
temp.npc.join("drop");

Sounds like you're doing destroy(); on clientside and not serverside.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 06-01-2012, 04:16 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
Nevermind I got it. thanks.
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 09:01 AM.


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