Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   callstack for putnpc2's (https://forums.graalonline.com/forums/showthread.php?t=85603)

cbk1994 05-17-2009 02:30 AM

callstack for putnpc2's
 
Would be awesome if callstack could be added for placed NPCs, that way you could do something like

Class item_dropped:
PHP Code:

function onCreated() {
  
temp.callstack getcallstack();
  
  if (
callstack[callstack.size() - 2].scriptcallobject.name != "-Inventory") {
    echo(
"Item has been placed illegally!");
    
destroy();
  }
  
  
// item stuff




All times are GMT +2. The time now is 10:17 AM.

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