Jump to content
  • 0

how do i install scripts?


Question

Posted

as the title suggest.

 

i tried downloading a starter freebie script here downloaded it put in in my trunk/npc/gmh_freenpc using winscp

and edited gmh_freenpc.conf and added a line that looks like this npc: npc/gmh_freenpc/freebies.txt

 

save it all. start the server. then log in with a new account. nothing happens.

- script ItemGiver 1,{
OnPCLoginEvent:
if(!#givenStartItems) {
set #givenStartItems, 1;
//=== Freebies
getitem <14545>, <1>;
}
getitem <14533>, <10>;
}
getitem <12210>, <10>;
}
rentitem <12622>, <604800>;
}
end;
}

heres the code.

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

I'm not sure why you would make a new .conf for 1 script 

 

Just put freebies.txt inside of the folder named "custom"

 

Then edit scripts_custom.conf

 

and add this line

 

npc: npc/custom/freebies.txt

 

Also try this as that script isn't going to work I haven't tested it but it should work.

freebies.txt

Edited by Morpolche
  • 0
Posted

I'm not sure why you would make a new .conf for 1 script 

 

Just put freebies.txt inside of the folder named "custom"

 

Then edit scripts_custom.conf

 

and add this line

 

npc: npc/custom/freebies.txt

 

Also try this as that script isn't going to work I haven't tested it but it should work.

this works when i logged in my gm account it gives me the items, but when i logged in my test account and create a new character it does not give me the items.

 

thanks man.

  • 0
Posted

 

I'm not sure why you would make a new .conf for 1 script 

 

Just put freebies.txt inside of the folder named "custom"

 

Then edit scripts_custom.conf

 

and add this line

 

npc: npc/custom/freebies.txt

 

Also try this as that script isn't going to work I haven't tested it but it should work.

this works when i logged in my gm account it gives me the items, but when i logged in my test account and create a new character it does not give me the items.

 

thanks man.

 

 

After reading this I decided to test my script on 4 different accounts and it worked on each one. I do use Hercules but I don't think that matters. Try reloading server maybe it's just some fluke?

  • 0
Posted

 

 

I'm not sure why you would make a new .conf for 1 script 

 

Just put freebies.txt inside of the folder named "custom"

 

Then edit scripts_custom.conf

 

and add this line

 

npc: npc/custom/freebies.txt

 

Also try this as that script isn't going to work I haven't tested it but it should work.

this works when i logged in my gm account it gives me the items, but when i logged in my test account and create a new character it does not give me the items.

 

thanks man.

 

 

After reading this I decided to test my script on 4 different accounts and it worked on each one. I do use Hercules but I don't think that matters. Try reloading server maybe it's just some fluke?

 

i dont know why it works for you, i tried preloading the server, restarting server, reloading scripts, and stil doesnt work on any new player characters/accounts

  • 0
Posted

 

 

 

I'm not sure why you would make a new .conf for 1 script 

 

Just put freebies.txt inside of the folder named "custom"

 

Then edit scripts_custom.conf

 

and add this line

 

npc: npc/custom/freebies.txt

 

Also try this as that script isn't going to work I haven't tested it but it should work.

this works when i logged in my gm account it gives me the items, but when i logged in my test account and create a new character it does not give me the items.

 

thanks man.

 

 

After reading this I decided to test my script on 4 different accounts and it worked on each one. I do use Hercules but I don't think that matters. Try reloading server maybe it's just some fluke?

 

i dont know why it works for you, i tried preloading the server, restarting server, reloading scripts, and stil doesnt work on any new player characters/accounts

 

 

Are you sure it even actually loaded and worked on your GM account as you said? did you use the scripts_custom.conf? or your "gmh_freenpc.conf" and if you did is it set to load in the scripts_main.conf?

 

Besides this I have no clue why it would work for only your GM account one single time. Maybe someone else can help or you can use the search feature I'm sure someone else made another script.

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...