Jump to content
  • 0

how do i duplicate this script


AinsLord

Question


  • Group:  Members
  • Topic Count:  261
  • Topics Per Day:  0.08
  • Content Count:  758
  • Reputation:   20
  • Joined:  11/21/15
  • Last Seen:  

- script ItemGiver 1,{
OnPCLoginEvent:
if(!#givenStartItems) {
set #givenStartItems, 1;
//=== Freebies
getitem <item_id>, <quantity>;
}
end;
}

thnx in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

- script ItemGiver 1,{
OnPCLoginEvent:
if(!#givenStartItems) {
set #givenStartItems, 1;
//=== Freebies
getitem <item_id>, <quantity>;
}
end;
}

thnx in advance

 

To duplicate NPC:

 

yourmap,x,y,4	duplicate(ItemGiver)	ItemGiver#2	1

But why will you duplicate an NPC that is triggered by OnPCLoginEvent?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

I'm not a 100% sure of what I'm about to say but I think labels don't trigger in duplicates. Why do you want to duplicate it?

Edited by Kurofly
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

Original script

 

- script ItemGiver 1,{
OnPCLoginEvent:
if(!#givenStartItems) {
set #givenStartItems, 1;
//=== Freebies
getitem <item_id>, <quantity>;
}
end;
}
Duplicate

 

- script ItemGiver2 1,{
OnPCLoginEvent:
if(!#givenStartItems2) {
set #givenStartItems2, 1;
//=== Freebies
getitem <item_id>, <quantity>;
}
end;
}
I just changed the name of the script and givenStartItems to givenStartItems2.
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   2
  • Joined:  10/30/13
  • Last Seen:  

- script ItemGiver 1,{
OnPCLoginEvent:
if(!#givenStartItems) {
set #givenStartItems, 1;
//=== Freebies
getitem <item_id>, <quantity>;
}
end;
}

thnx in advance

 

- script ItemGiver 1,{
OnPCLoginEvent:
if(!#givenStartItems) {
set #givenStartItems, 1;
//=== Freebies
getitem <item_id>, <quantity>;
getitem <item_id>, <quantity>;
getitem <item_id>, <quantity>;
getitem <item_id>, <quantity>;
}
end;
}

Like this??

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  261
  • Topics Per Day:  0.08
  • Content Count:  758
  • Reputation:   20
  • Joined:  11/21/15
  • Last Seen:  

thnx a lot for some help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...