View Single Post
  #10  
Old 09-03-2012, 03:30 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
You shouldn't be using triggeraction for this anyway, it's unreliable, especially when you're doing something that involves moving the NPCs. Generally a better way is to setup some way of uniquely identifying your NPCs (easy if they're DB NPCs/putnpcs).
They are put npc's,

PHP Code:
function onActionServerside(command) {
  if ( 
params[0] == "puts" ) {
    
temp.obj putnpc2(params[1], params[2], "");
    
temp.obj.image "block.png";
    
temp.obj.join("personal_mewtoo18_test");
  }
}
//#CLIENTSIDE
function onWeaponFired() {
  
triggerServer("gui"this.name"puts"player.xplayer.y); 

Is how they are being placed currently. I want to make them draggable, and showing there current position while dragged to other players.. I know Tig has something like this using WNPC's for player dragging but certain commands like "this.trigger()" didn't seem to be working on putnpc's for me.

Quote:
Originally Posted by ffcmike View Post
Problem might be that you're using 'setshape2' instead of 'setshape'. Setshape2 is for modifying the tiletype's beneath an NPC.
And that, ladies and gentlemen, solved my problem. I was not aware of the difference in setshape() vs setshape2().
Reply With Quote