Jump to content
  • 0

how do i duplicate this script


Question

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

thnx in advance

5 answers to this question

Recommended Posts

  • 0
Posted
- 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?

  • 0
Posted

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
  • 0
Posted
- 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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...