예제 #1
0
from com.pwnxile.core import World

World.addNonCombatNpc(2625, 2477, 5147, 0, 0)#tzhaar shop

def first_click_npc_2625(player):
	player.startChat(2600)
	
def chat_2600(player):
	player.playerChat("Hello, do you have anything for sale?")
	player.nextChat(2601)
	
def chat_2601(player):
	player.npcChat("Yes indeed.", "I am a crafter obsidian items,", "I will however sell to you in the", "Tzhaar currency Tokkul.")
	player.nextChat(2602)
	
def chat_2602(player):
	player.playerChat("Show me the goods!")
	player.nextChat(2603)

def chat_2603(player):
	player.getShop().openShop(29)
예제 #2
0
파일: baraek.py 프로젝트: Robstuh/PwnScript
# NPC Config Script
# Baraek - 547
# Author Robbie
from com.pwnxile.core import World

baraek = World.addNonCombatNpc(547, 3217, 3433, 0, 1)

def first_click_npc_547(player): 
	baraek.forceChat("I could say something...")
예제 #3
0
파일: monk.py 프로젝트: Robstuh/PwnScript
from com.pwnxile.core import World
# NPC Config Script
# Monk - 222
# Author Robbie

monk_id = 222
monk_1 = World.addCombatNpc(monk_id, 3053, 3489, 0, 1, 50, 40, 150, 150)
monk_2 = World.addCombatNpc(monk_id, 3051, 3491, 0, 1, 50, 40, 150, 150)

def command_start(p):
    monk_1.attackNpc(monk_2, 30, 369, 1979) # attack using ice barrage xd

def first_click_npc_222(player):
    player.startChat(2105)
    
def chat_2105(player):
    player.playerChat("Hello there!")
    player.nextChat(2106)

def chat_2106(player):
    player.npcChat("Greetings!", "Welcome to the Monastery.")
    player.nextChat(2107)

def chat_2107(player):
    player.playerChat("Thanks!")
    player.endChat()