another most likely noob question

Play Now

chris987789

Dedicated Member
Dedicated Member
Dec 29, 2008
11
0
27
Was wondering if it would be possible to create an npc to collect gamegold thats been donated for.
For example donate for 50 gg then within 24hours npc would credit you when you went to it.
I no it would use a namelist which i could easily create but from the name being on the list how do i set an actual amount of gg to give.
I.E. 1 person donates for 50gg another for 10gg both names would be on namelist but how would npc know how much to increase gamegold by?

Thanks in advance
 

Mask

Banned
Banned
Golden Oldie
Jun 20, 2003
1,695
22
175
United Kingdom
Was wondering if it would be possible to create an npc to collect gamegold thats been donated for.
For example donate for 50 gg then within 24hours npc would credit you when you went to it.
I no it would use a namelist which i could easily create but from the name being on the list how do i set an actual amount of gg to give.
I.E. 1 person donates for 50gg another for 10gg both names would be on namelist but how would npc know how much to increase gamegold by?

Thanks in advance

create several name lists, 50p £1, £2 , £5 , £10 etc, then if someone donates £3.50, you can check the £2, £1, and 50p namelists. or if your lazy just create a namelist for each amount.
 
Upvote 0

chris987789

Dedicated Member
Dedicated Member
Dec 29, 2008
11
0
27
Problem with this:

Code:
()
%100
[@main]
Welcome to the gamegold collection point.\
It may take upto 48hours for gamegold to\
be available after a donation.\ \
If you have donated please click <here/@ggcheck1>.\
<Exit/@exit>

[@ggcheck1]
#IF
CHECKNAMELIST namelists/gg50.txt
#ACT
DELNAMELIST namelists/gg50.txt
gamegold + 10
goto @ggcheck2
#ELSEACT
goto @ggcheck2

[@ggcheck2]
#IF
CHECKNAMELIST namelists/gg100.txt
#ACT
DELNAMELIST namelists/gg100.txt
gamegold + 20
goto @ggcheck3
#ELSEACT
goto @ggcheck3

[@ggcheck1]
#IF
CHECKNAMELIST namelists/gg200.txt
#ACT
DELNAMELIST namelists/gg200.txt
gamegold + 40
goto @ggcheck4
#ELSEACT
goto @ggcheck4

[@ggcheck4]
#IF
CHECKNAMELIST namelists/gg400.txt
#ACT
DELNAMELIST namelists/gg400.txt
gamegold + 80
goto @ggcheck5
#ELSEACT
goto @ggcheck5

[@ggcheck5]
#IF
CHECKNAMELIST namelists/gg800.txt
#ACT
DELNAMELIST namelists/gg800.txt
gamegold + 160
goto @ggcheck6
#ELSEACT
goto @ggcheck6

[@ggcheck6]
#IF
CHECKNAMELIST namelists/gg1600.txt
#ACT
DELNAMELIST namelists/gg1600.txt
gamegold + 320
goto @ggcheck7
#ELSEACT
goto @ggcheck7

[@ggcheck7]
#IF
CHECKNAMELIST namelists/gg3200.txt
#ACT
DELNAMELIST namelists/gg3200.txt
gamegold + 640
goto @ggcheck8
#ELSEACT
goto @ggcheck8

[@ggcheck8]
#IF
CHECKNAMELIST namelists/gg6400.txt
#ACT
DELNAMELIST namelists/gg6400.txt
gamegold + 1280
goto @ggcheck9
#ELSEACT
goto @ggcheck9

[@ggcheck9]
#IF
CHECKNAMELIST namelists/gg12800.txt
#ACT
DELNAMELIST namelists/gg12800.txt
gamegold + 2560
goto @ggcheck10
#ELSEACT
goto @ggcheck10

[@ggcheck10]
#IF
CHECKNAMELIST namelists/gg25600.txt
#ACT
DELNAMELIST namelists/gg25600.txt
gamegold + 5120
goto @ggcheck11
#ELSEACT
goto @ggcheck11

[@ggcheck11]
You currently have <$GAMEGOLD>gamegold\
If you think this is incorrect please leave\
24 hours then contact support at:\
[email protected]\ \
<Exit/@exit>

I've created the lists in market_def/namelists which i know is correct and added myself to the gg400 list yet when i click <here/@ggcheck1> on the npc it stays on the [@main] screen and doesn't give me gg or remove my name from list.
Thanks in advance for the help :)


EDIT: Re-Posting for others to use
 
Last edited:
Upvote 0