Jump to content
  • 0

Need this Example Script.. (Guild Related)


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Hi,

I'm currently working on this new NPC.. But it just rough idea and concept only.. Can anybody give me example for this script or do it already exist? Since I googling around not found any yet..

1. GM will set like example GUILD A for access this map.. So only GUILD A can enter this map.. And for next month, GM will reset this.. And set only GUILD B can only enter this map.. So other guild cannot enter it.

2. 1 NPC selling items in town.. Each time player buy it, the guild master of guild who can enter map (like #1) can claim the selling items money.. Like example, this NPC selling Red Potion for 1,000z each and daily only sell 1 unit.. And player buy it for 30days get 30,000z.. And all money can be claimed by Guild Master.

Thank you in advance..

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  57
  • Reputation:   16
  • Joined:  09/26/16
  • Last Seen:  

hmm... i'll just give a vague idea, since i don't like spoon feeding, this is actually easy if you read the doc

getgmlevel() > (set your GM level who can access)
input guild name/guild id
//check if exists guild id/name, try getguildname or query
save guild id to  $name  - permanent global integer variable //any var name
then...
OnPCLoadMapEvent:
if( $name != getcharid(2) && strcharinfo(3) == `thismap` )
warpout 
add mapflag `loadevent` on your specific monthly map

as for shop, i see two approach:  some skilled pipz may have a lot of approaches
*use global variable to set items on sale, prices, and total income. 
*make new table for this shop, query each transaction. 
npcshopattach then OnBuyItem to update the total income
npcshopupdate whenever items are updated, (restock, bought, change price, etc)

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Ok thanks.. Now I got the idea how to do it.. ^_^

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