Jump to content
  • 0

how do i install scripts?


akositiki

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

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.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   2
  • Joined:  04/20/13
  • Last Seen:  

-<TAB>script<TAB>ItemGiver<TAB>-,{

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   11
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   11
  • Joined:  01/01/12
  • Last Seen:  

 

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

 

 

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   11
  • Joined:  01/01/12
  • Last Seen:  

 

 

 

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.

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