Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 04-21-2008, 01:25 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes some servers already have that npc
Reply With Quote
  #42  
Old 04-21-2008, 06:10 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by cbkbud View Post
Awesome, I will try this out!

Does it have to be named GlobalShopControl?
It's the NPC that gets sendtext'ed or so for displaying items in the gelat shop and such so that is what he used for observer mode too I guess. (So you don't need an updated client/npc server)
__________________
Do it with a DON!
Reply With Quote
  #43  
Old 04-21-2008, 04:53 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Actually the script can trigger any npc, but the shop control is somehow related to observer mode so it's better to just use one npc (and not flood the npc list of servers with npcs).
Reply With Quote
  #44  
Old 04-21-2008, 11:04 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stefan View Post
Actually the script can trigger any npc, but the shop control is somehow related to observer mode so it's better to just use one npc (and not flood the npc list of servers with npcs).
Fair enough.
__________________
Reply With Quote
  #45  
Old 05-16-2008, 03:30 AM
bscharff bscharff is offline
Bloo
bscharff's Avatar
Join Date: Sep 2006
Location: San Antonio, Texas
Posts: 185
bscharff has a little shameless behaviour in the past
Send a message via AIM to bscharff Send a message via MSN to bscharff Send a message via Yahoo to bscharff
I never thought it would happen
__________________
Trying to be nice now...
Reply With Quote
  #46  
Old 05-16-2008, 04:46 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Nice >:O !
Reply With Quote
  #47  
Old 05-16-2008, 11:33 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Quote:
Originally Posted by Stefan View Post
Ok added an event: add an npc GlobalShopControl:
PHP Code:
function onReceiveText(texttypetextoptiontextlines) {
  if (
texttype=="lister" && textoption=="prepareobserver"
    echo(
"account " textlines[0] @ " will be switched to observer mode in 5 seconds!");

what if you want it the other way around? observer to normal ??
Reply With Quote
  #48  
Old 05-16-2008, 11:39 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
what if you want it the other way around? observer to normal ??
onActionPlayerOnline() ? I think this is called when they come back on.
__________________
Reply With Quote
  #49  
Old 05-16-2008, 11:41 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
hmm i dont think so, can anyone confirm?
Reply With Quote
  #50  
Old 05-17-2008, 01:53 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There are still onSwitchPlayerToObserver and onSwitchObserverToPlayer, and a few months ago it has been changed to also do onPlayerLogin, onPlayerLogout and onActionPlayerOnline to work better with servers by default.
Reply With Quote
  #51  
Old 05-17-2008, 03:52 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Bring back VIP
__________________

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 10:10 PM.


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