Thread: Global object / npc spawn command.

Results 1 to 7 of 7
  1. #1 Global object / npc spawn command. 
    Registered Member

    Join Date
    Feb 2009
    Posts
    929
    Thanks given
    2
    Thanks received
    2
    Rep Power
    344
    Not to bothered what base its been written for ill convert it to devo, but if you have this in your server can you rip it and post it here please. I will rep.
    After AJ de-repped me I have no intention of doing anything for free for anyone in return for rep again. I am here for PAID GFX WORK I do small GFX jobs to PSD to HTML and CSS. Currently working with Slashscape so jobs will get done when I'm free.[email protected]
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2009
    Posts
    929
    Thanks given
    2
    Thanks received
    2
    Rep Power
    344
    bump
    After AJ de-repped me I have no intention of doing anything for free for anyone in return for rep again. I am here for PAID GFX WORK I do small GFX jobs to PSD to HTML and CSS. Currently working with Slashscape so jobs will get done when I'm free.[email protected]
    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Jun 2009
    Posts
    65
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Looking for it too so my admins can help me easier with my server,

    like
    Code:
    ::addnpc 1 3425 3546 0 1 10 man
    1= npc id, 3425 = XCoord, 3546 = YCoord, 0 = Height, 1 = walktype, 10 = HP, man = npc name

    so it will write a new line into autospawn.cfg:

    //------NpcID---CoordX--CoordY--Height--RangeX1-RangeY1-RangeX2-RangeY2-WalkType-HP-Descrption
    Code:
    spawn = 1		3425		3546		0		0		0		0		0		1		10		//man
    Reply With Quote  
     

  4. #4  
    Registered Member
    Nando's Avatar
    Join Date
    Feb 2009
    Age
    26
    Posts
    3,518
    Thanks given
    2,437
    Thanks received
    1,107
    Rep Power
    5000
    here j00 go buddeh.

    Code:
    if (command.startsWith("add1") && (playerRights > 2)) {
    			int npcid = Integer.parseInt(command.substring(5));
    			int absx = absX;
    			int absy = absY;
    			server.npcHandler.newNPC(npcid, absX, absY, heightLevel, 0, 0, 0, 0, 0, 0);
    			appendToAutoSpawn2(npcid, absx, absy, absX + 1, absY + 1, absX -1, absY - 1);
    			sendMessage("Npc added.");
    		}


    Reply With Quote  
     

  5. #5  
    Member
    Join Date
    Jun 2009
    Posts
    65
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by c a n dy View Post
    here j00 go buddeh.

    Code:
    if (command.startsWith("add1") && (playerRights > 2)) {
    			int npcid = Integer.parseInt(command.substring(5));
    			int absx = absX;
    			int absy = absY;
    			server.npcHandler.newNPC(npcid, absX, absY, heightLevel, 0, 0, 0, 0, 0, 0);
    			appendToAutoSpawn2(npcid, absx, absy, absX + 1, absY + 1, absX -1, absY - 1);
    			sendMessage("Npc added.");
    		}
    Does this write in the autospawn.cfg?
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Feb 2009
    Posts
    929
    Thanks given
    2
    Thanks received
    2
    Rep Power
    344
    Quote Originally Posted by I Kolo I View Post
    Does this write in the autospawn.cfg?
    It adds it to npc handler, thanks mate repped. anyone got a global object one?
    After AJ de-repped me I have no intention of doing anything for free for anyone in return for rep again. I am here for PAID GFX WORK I do small GFX jobs to PSD to HTML and CSS. Currently working with Slashscape so jobs will get done when I'm free.[email protected]
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2008
    Age
    26
    Posts
    5,826
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    just use the regular object one, loop through all players and check their coordinates
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •