User:SonOfSevenless: Difference between revisions
>SonOfSevenless No edit summary |
>SonOfSevenless No edit summary |
||
Line 43: | Line 43: | ||
This map is inspired by the many wizard duel arena games from the late 80s/ early 90s. | This map is inspired by the many wizard duel arena games from the late 80s/ early 90s. | ||
== Store Script == | |||
local w = game:service("HtmlService"):NewWindow() | |||
function getPlayer(humanoid) | |||
local players = game.Players:children() | |||
for i = 1, #players do | |||
if players[i].Character.Humanoid == humanoid then return players[i] end | |||
end | |||
return nil | |||
end | |||
w:SetCallback(function(a) | |||
print(a) | |||
local gold = game.Players.LocalPlayer.leaderstats.Gold | |||
-- Store | |||
if (a == "jetboots" and gold.Value >= 10) then | |||
gold.Value = gold.Value - 10 | |||
local item = Instance.new("IntValue") | |||
item.Name = "JetBoots" | |||
item.Parent = game.Players.LocalPlayer.inventory | |||
end | |||
if (a == "deringer" and gold.Value >= 15) then | |||
gold.Value = gold.Value - 15 | |||
local item = Instance.new("IntValue") | |||
item.Name = "Deringer" | |||
item.Parent = game.Players.LocalPlayer.inventory | |||
end | |||
if (a == "multibomb" and gold.Value >= 25) then | |||
gold.Value = gold.Value - 25 | |||
local item = Instance.new("IntValue") | |||
item.Name = "Multibomb" | |||
item.Parent = game.Players.LocalPlayer.inventory | |||
end | |||
if (a == "busterbomb" and gold.Value >= 50) then | |||
gold.Value = gold.Value - 50 | |||
local item = Instance.new("IntValue") | |||
item.Name = "BusterBomb" | |||
item.Parent = game.Players.LocalPlayer.inventory | |||
end | |||
end) | |||
w.DocumentComplete:connect(function () | |||
w:SetBody([==[ | |||
<table width="420" height="190" border="0"> | |||
<tr> | |||
<td width="490" bgcolor="#000000"><font color="#FFFF00"> | |||
</font><div align="center"> | |||
<p><font color="#FFFF00"><b>General Store</b></font></p> | |||
<p><font color="#FFFF00">What do you need? Careful not to buy anything you already have, you can only carry one of each item.</font></p> | |||
<p><font color="#FFFF00"><b>Jet Boots - 10 Gold</b><br/>These boots will let you fly for a short time. Select and hold down the mouse button to use. Great for climbing out of holes.</font></p> | |||
<input id="Button" type="button" value="Buy JetBoots (10 Gold)" onclick="window.external.Call('jetboots')" /><br /> | |||
<p><font color="#FFFF00"><b>Deringer - 15 Gold</b><br/>Deringers are weak guns, but they're great for scaring away gold-stealing noobs.</font></p> | |||
<input id="Button" type="button" value="Buy Deringer (15 Gold)" onclick="window.external.Call('deringer')" /><br /> | |||
<p><font color="#FFFF00"><b>Multibomb - 25 Gold</b><br/>The theory is that lots of bombs are better than just one. Often, you'll just blow yourself up by accident. lol!</font></p> | |||
<input id="Button" type="button" value="Buy Multibomb (30 Gold)" onclick="window.external.Call('multibomb')" /><br /> | |||
<p><font color="#FFFF00"><b>Buster Bomb - 50 Gold</b><br/>This is a powerful bomb is really good at crunching up rock and will save you a lot of time.</font></p> | |||
<input id="Button" type="button" value="Buy Busterbomb (50 Gold)" onclick="window.external.Call('busterbomb')" /><br /> | |||
<p><font color="#FFFF00">---</font></p> | |||
<p><font color="#FFFF00">Thank you come again!</font></p> | |||
<p><font color="#FFFF00">SoS</font></p> | |||
</div> | |||
</td> | |||
</tr> | |||
</table> | |||
]==]) | |||
w:Show() | |||
end) | |||
w:Navigate() |
Revision as of 00:39, 15 November 2007
My hax are leet.
Current projects:
Goldwater
- Transport -
Teleport to Outpost
Jump Boots
Jet Boots
Teleport
- Mining Tools -
Bomb
Rockets
Big Bomb
- Personal Defense -
Knife
Deringer
Argyll
Currently the map is known as Wizard War. Players take on the role of powerful wizards and do battle with spells.
In the future players will select a specific branch of magic to specialize in and by leveling up gain access to more powerful spells.
This map is inspired by the many wizard duel arena games from the late 80s/ early 90s.
Store Script
local w = game:service("HtmlService"):NewWindow()
function getPlayer(humanoid) local players = game.Players:children() for i = 1, #players do if players[i].Character.Humanoid == humanoid then return players[i] end end return nil end
w:SetCallback(function(a)
print(a)
local gold = game.Players.LocalPlayer.leaderstats.Gold
-- Store if (a == "jetboots" and gold.Value >= 10) then gold.Value = gold.Value - 10 local item = Instance.new("IntValue") item.Name = "JetBoots" item.Parent = game.Players.LocalPlayer.inventory end
if (a == "deringer" and gold.Value >= 15) then gold.Value = gold.Value - 15 local item = Instance.new("IntValue") item.Name = "Deringer" item.Parent = game.Players.LocalPlayer.inventory end
if (a == "multibomb" and gold.Value >= 25) then gold.Value = gold.Value - 25 local item = Instance.new("IntValue") item.Name = "Multibomb" item.Parent = game.Players.LocalPlayer.inventory end
if (a == "busterbomb" and gold.Value >= 50) then gold.Value = gold.Value - 50 local item = Instance.new("IntValue") item.Name = "BusterBomb" item.Parent = game.Players.LocalPlayer.inventory end
end)
w.DocumentComplete:connect(function () w:SetBody([==[
General Store What do you need? Careful not to buy anything you already have, you can only carry one of each item. Jet Boots - 10 Gold <input id="Button" type="button" value="Buy JetBoots (10 Gold)" onclick="window.external.Call('jetboots')" /> Deringer - 15 Gold <input id="Button" type="button" value="Buy Deringer (15 Gold)" onclick="window.external.Call('deringer')" /> Multibomb - 25 Gold <input id="Button" type="button" value="Buy Multibomb (30 Gold)" onclick="window.external.Call('multibomb')" /> Buster Bomb - 50 Gold <input id="Button" type="button" value="Buy Busterbomb (50 Gold)" onclick="window.external.Call('busterbomb')" /> --- Thank you come again! SoS |
]==])
w:Show() end)
w:Navigate()