AinsLord Posted June 22, 2016 Posted June 22, 2016 - script ItemGiver 1,{ OnPCLoginEvent: if(!#givenStartItems) { set #givenStartItems, 1; //=== Freebies getitem <item_id>, <quantity>; } end; } thnx in advance Quote
0 Aureon Posted June 22, 2016 Posted June 22, 2016 - 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? Quote
0 Kurofly Posted June 22, 2016 Posted June 22, 2016 (edited) 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 June 22, 2016 by Kurofly Quote
0 Neffletics Posted June 23, 2016 Posted June 23, 2016 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. 1 Quote
0 Kozima Posted June 23, 2016 Posted June 23, 2016 - 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?? 1 Quote
Question
AinsLord
thnx in advance
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.