![]() |
with(getplayer(xi)) question
Ok, i am rather new to... well basically the npc-server setup itself... and i have a few questions
if i am on this account, and fire an NPC that has with(getplayer(MeoDea)) {showimg 201,block.png,playerx,playery;} only MeoDea will be able to see the image right? and if so, if a seperate NPC player MeoDea has calls hideimg 201, will it hide this image? and if i do with(getplayer(MeoDea)) {timeout=4;} will it set a timeout for MeoDea to 4 seconds? Sorry if these seem like simple questions, but i was told getplayer(i) makes it like player i is the active player.... but not quite... and i don't know how close it is to them being the active player |
It's used to get informations or send informations to the specified player,serverside. E.g:
NPC Code: You can send any information to osrs using 'with(getplayer())' that way. |
Re: with(getplayer(xi)) question
Quote:
Quote:
Nope, timeout is NPC local and not player dependant. |
showimg is a function of the npc, so all players would see it. Also the timeout variable belongs to the npc, so it doesn't matter who the active player is, it would always set the timeout for the npc.
If you want to change something on the clientside you will need to set strings for the player (setstring client.name,value; or setstring clientr.name,value; ) and possibly do a trigger (like triggeraction 0,0,clientside, weaponname,params; ) and on clientside you then display an image or similar when the string is set or when the trigger is received (if (actionclientside)...) |
Triggeraction to Clientside?
Hi,
Is it possible to make a triggeraction from Serverside to Clientside? |
Re: Triggeraction to Clientside?
Quote:
|
| All times are GMT +2. The time now is 04:19 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.