hey Guys i have added a teleporter to a secret dungeon im working on, right now i have it teleporting me to the abyss.... can any body help me make it where it charges to teleport here is the function im trying to use(it teleports just dont charge)
function Warp_test()
warp(186985, 160271)
end
local gold = gv("gold")
if gold >= 250000000
then sv("gold",gold -25000000)
update_gold_chaos()
end
function Warp_test()
local gold = get_value( "gold" )
if gold >= 250000000
warp(186985, 160271)
set_value( "gold", gold - 250000000 )
update_gold_chaos()
else
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
The title and text at the end I got from another buff charging lua. It should say "Sorry you do not have enough rupees" If it does not I can help you play around with it.
EDIT: The title is for Druid Kart the NPC name, you can change it if you know the string for your NPC.
The text is...
You dont have enough money come back when you arent so poor.
ok i just copied and pasted ur function and this error is what i got...
i added the 'then' and this is what i got...
i added the end and this is the finished function ...(checking now to see if it works
function Warp_Ecstacy()
end
local gold = get_value( "gold" )
if gold >= 250000000
then
warp(186985, 160271)
set_value( "gold", gold - 250000000 )
update_gold_chaos()
else
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
The function should require calling from an NPC dlg menu, Where are you putting this fuction?
I am putting in the script that i made for my NPC in the dlg_menu but what i think happen is when i closed out the function it made it where it looked for the rupees at log in lol let me try it with the last way u suggested
Put it after the NPC Function not in the dlg menu like this...
Code:
Function NPC_Warp_To_New_Dungeon_Contact()
dlg_title( "Warp Master" )
dlg_menu( "Warp To Secret Dungeon", "Warp_Ecstacy()" )
end
function Warp_Ecstacy()
local gold = get_value( "gold" )
if gold >= 250000000
then
warp(186985, 160271)
set_value( "gold", gold - 250000000 )
update_gold_chaos()
else
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
end
Put it after the NPC Function not in the dlg menu like this...
Code:
Function NPC_Warp_To_New_Dungeon_Contact()
dlg_title( "Warp Master" )
dlg_menu( "Warp To Secret Dungeon", "Warp_Ecstacy()" )
end
function Warp_Ecstacy()
local gold = get_value( "gold" )
if gold >= 250000000
then
warp(186985, 160271)
set_value( "gold", gold - 250000000 )
update_gold_chaos()
else
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
end
that is what i meant but mine looks a little different because i have added several different menus and custom dlg_text in each menu but it works now that i took out the
'end' in
function Warp_Ecstacy()
end
and put it at the end of the entire function once again thank you thndr
that is what i meant but mine looks a little different because i have added several different menus and custom dlg_text in each menu but it works now that i took out the
'end' in
function Warp_Ecstacy()
end
and put it at the end of the entire function once again thank you thndr
Yeah you were ending the function right after it began, then the other script was just running wild on its own, that's why it happened at server init or log on.
And yeah I expected yours to look a little more extravagant with more NPC choices, I was just posting it as an example.
Anyway you are welcome, I am glad it is working for you now.
im thinking about opening it up to a few extra friends (still got a few kinks to work out but every thing is coming along nicely[with the help of Epvp and you Thndr] )any idea on a good registration page?
if i do i doubt everyone will want me to know their password lol
im thinking about opening it up to a few extra friends (still got a few kinks to work out but every thing is coming along nicely[with the help of Epvp and you Thndr] )any idea on a good registration page?
if i do i doubt everyone will want me to know their password lol
I set up this little tid bit from ismokedrow without too much difficulty...
[Helping Topic] 24/7 Helping Services! 08/27/2008 - EO PServer Hosting - 31 Replies stucked on anything while setuping your server?
post your problem here and you will get answer as fast as possible better than spamming with posts :cool:
first of all try reading Ahmedpotop's Pserver All thing guide.
if your couldn't solve it out post your problem down here
""That includes PHP rankings pages / registrations pages / Status pages""